Muhammad_Munir
Published © GPL3+

RGB LED Flasher

How to RGB LED Flasher

BeginnerFull instructions provided110
RGB LED Flasher

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Adafruit NeoPixel Digital RGB LED Strip 144 LED, 1m White
Adafruit NeoPixel Digital RGB LED Strip 144 LED, 1m White
×1
ULN 2003 ic
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Story

Read more

Code

Code

Arduino
const int red = 11;
const int green =12;
const int blue = 13;
void setup() {

  pinMode(red, OUTPUT);
  pinMode(green, OUTPUT);
  pinMode(blue, OUTPUT);
}


void loop() {
  digitalWrite(red, HIGH);   
  digitalWrite(green, LOW);
  digitalWrite(blue, LOW);
  delay(1000); 
   digitalWrite(red, LOW);   
  digitalWrite(green, HIGH);
  digitalWrite(blue, LOW);
  delay(1000);
   digitalWrite(red, LOW);   
  digitalWrite(green, LOW);
  digitalWrite(blue, HIGH);
     
  delay(1000);                    
}

Credits

Muhammad_Munir

Muhammad_Munir

77 projects • 48 followers
I am Arduino programmer, also expertise in ESP32 and 8266 wifi modules.

Comments