Hi, this is my Blink:
This is my code:
// Blink: Turns LED on for a second, then off for a second//pin 13 nameint led = 13;//setup routine runs once when reset is pressedvoid setup() {//initialize the digital pin as an outputpinMode(led, OUTPUT) ;}//the loop routine runs over and over again :void loop() {digitalWrite(led,HIGH); //turn LED ondelay(500) ; //waits a seconddigitalWrite(led,LOW); //turn the LED offdelay(500); //waits a second}
No comments:
Post a Comment