Arduino Blink

From BenningtonWiki
Jump to: navigation, search

Connect an LED to digital output 13. Watch it blink. Woo. <source lang="C"> void setup(void) {

   pinMode(13, OUTPUT);

}

void loop(void) {

   digitalWrite(13, 1);
   delay(500);
   digitalWrite(13, 0);
   delay(500);

} </source>