top of page

Blink 1 Code
//LED Blink Turns an LED on and off for one second.
int led1 = 7;//tells which pin is connected to the LED
void setup( ) {
pinMode(led1, OUTPUT);// sets up the pin as an output
}
void loop() {
digitalWrite(led1, HIGH);//turn LED on
delay(1000);// wait for 1000 milliseconds (one second)
digitalWrite(led1, LOW);//turn LED off
delay(1000);//wait one second
}
bottom of page