Things used in this project

Hardware components:
Photon new
Particle Photon
×1
09590 01
LED (generic)
×3
Adafruit Breadboard - Full size
×1
Adafruit Resistor - 10K ohm
×3
Adafruit Jumper Wires - Male/Male
×5

Schematics

image1 - LED off
Image1 xduk7nhsna
image2 - LED On
Image2 ftpykur9fb
image3 - Photon view
Image3 qfs2mchco0

Code

Blinking LED's using Particle PhotonC/C++
This is a simple and easy project - in this project i am connecting Particle Photon to biink 3 LEDs (Red, Blue & Green) arranged on a Breadboard.
int led1 = D0; 
int led2 = D1; 

void setup() {
 pinMode(led1, OUTPUT);
 pinMode(led2, OUTPUT);
}


void loop() {

  digitalWrite(led1, HIGH);
  digitalWrite(led2, HIGH);

  delay(1000); // delayed for half a second

  digitalWrite(led1, LOW);
  digitalWrite(led2, LOW);

  // Wait 1 second...
  delay(500);

  // And repeat!
}

Credits

L1itao1i 400x400 qeecmrq65w
Hussain Patel
0 projects • 1 follower
Wed Developer, IoT, Raspberry Pi, Arduino, Microsoft IoT
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login