Arduino VIP Light Source Code - Project Weekend


void setup() {

  pinMode(LED_BUILTIN, OUTPUT);

  pinMode(12,OUTPUT);

}


void loop() {

  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)

  delay(50);                       // wait for a second

  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW

  delay(50);                       // wait for a second

  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)

  delay(50);                       // wait for a second

  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)

  delay(50);                       // wait for a second

  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW

  delay(50);                       // wait for a second

  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)

  delay(50);                       // wait for a second

  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW

  digitalWrite(12,HIGH);

  delay(50);

  digitalWrite(12,LOW);

  delay(50);

  digitalWrite(12,HIGH);

  delay(50);

  digitalWrite(12,LOW);

  delay(50);

  digitalWrite(12,LOW);

  delay(50);

  digitalWrite(12,HIGH);

  delay(50);

  digitalWrite(12,LOW);

}




Comments

Popular posts from this blog