IoT HUB
Published © GPL3+

How to setup Particle Photon 2

Set up your Particle Photon 2 in minutes! Learn how to connect, program, and cloud-enable your IoT device with ease.

IntermediateProtip15 minutes105
How to setup Particle Photon 2

Things used in this project

Hardware components

Photon 2
Particle Photon 2
×1

Software apps and online services

Particle Build Web IDE
Particle Build Web IDE

Story

Read more

Code

Basic code for blinking on-board RGB LED

C/C++
// Basic code for LED Blinking  -IoT HUB

void setup() {
  // Enable manual control of the onboard RGB LED
  RGB.control(true);
}

void loop() {
  // Turn LED to red
  RGB.color(255, 0, 0);
  delay(500);

  // Turn LED to green
  RGB.color(0, 255, 0);
  delay(500);

  // Turn LED to blue
  RGB.color(0, 0, 255);
  delay(500);

  // Turn LED off
  RGB.color(0, 0, 0);
  delay(500);
}

Credits

IoT HUB
4 projects • 3 followers
I’m a student who loves robotics, hacking, creating things with dev boards like ESP32/Arduino, and discovering tricks to simplify tech.

Comments