Example 1: 1s Pulses
Last updated
Last updated
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
*/
// the setup function runs once when you press reset or power the board
void setup() {
pinMode(9, OUTPUT);
}
// the loop function runs forever
void loop() {
digitalWrite(9, HIGH); // turn the LED on (HIGH is the voltage level)
delay(100);
digitalWrite(9, LOW); // turn the LED off by making the voltage LOW
delay(900);
}