Hussain Patel
Published © GPL3+

Blinking LEDs Using Particle Photon

A project using Particle Photon to blink 3 LEDs (red, blue and green) connected on a breadboard.

BeginnerShowcase (no instructions)30 minutes2,174
Blinking LEDs Using Particle Photon

Things used in this project

Hardware components

Photon
Particle Photon
×1
LED (generic)
LED (generic)
×3
Adafruit Breadboard - Full size
×1
Adafruit Resistor - 10K ohm
×3
Adafruit Jumper Wires - Male/Male
×5

Story

Read more

Schematics

image1 - LED off

image2 - LED On

image3 - Photon view

Code

Blinking LED's using Particle Photon

C/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

Hussain Patel

Hussain Patel

0 projects • 1 follower
Wed Developer, IoT, Raspberry Pi, Arduino, Microsoft IoT

Comments