baldengineer

Blink Example

May 26th, 2012
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. /*  Blink - This example code is in the public domain. */
  2.  
  3. void setup() {
  4.   // initialize the digital pin as an output.
  5.   // Pin 13: Arduino has an LED connected on pin 13
  6.   pinMode(13, OUTPUT);
  7. }
  8.  
  9. void loop() {
  10.   digitalWrite(13, HIGH);   // set the LED on
  11.   delay(1000);              // wait for a second
  12.   digitalWrite(13, LOW);    // set the LED off
  13.   delay(1000);              // wait for a second
  14. }
Advertisement
Add Comment
Please, Sign In to add comment