Arduino

Posted by Jake Good
on May 23, 08

Ahhh... the lovely Arduino... an open source physical computing platform... such lovely geekery comes out of it.

drop.io: simple private sharing


drop.io: simple private sharing


Here's the snippet of code:

/*
 * Blink
 *
 * The basic Arduino example.  Turns on an LED on for 50 milliseconds,
 * then off for 50 milliseconds, and so on...  We use pin 13 because,
 * depending on your Arduino board, it has either a built-in LED
 * or a built-in resistor so that you need only an LED.
 *
 * http://www.arduino.cc/en/Tutorial/Blink
 */

int ledPin = 13;                // LED connected to digital pin 13

void setup()                    // run once, when the sketch starts
{
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output
}

void loop()                     // run over and over again
{
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(50);                  // waits for 50 milliseconds
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(50);                  // waits for 50 milliseconds
}
Comments

Leave a response

  1. Michael LeungMay 23 08 @ 02:48PM
    You love it.
Comment