audraoutlaw
Published

Colorful Lights... For Xmas?

This is what I think is the simplest project here. great to look at the code if this is the first time you picked up an Arduino EVER

BeginnerFull instructions provided57
Colorful Lights... For Xmas?

Things used in this project

Story

Read more

Schematics

SCHEMATICS

Code

CODE

C/C++
// the setup function runs once when you press reset or power the board
void setup() {
  pinMode(13, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(11, OUTPUT);
  pinMode(9, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
  digitalWrite(12, HIGH);
  delay(1000);
  digitalWrite(12, LOW);
  delay(1000);
  digitalWrite(11, HIGH);
  delay(1000);
  digitalWrite(11, LOW);
  delay(1000);
  digitalWrite(9, HIGH);
  delay(1000);
  digitalWrite(9, LOW);
  delay(1000);
  
}

Credits

audraoutlaw
0 projects • 1 follower

Comments