Skip to content

Instantly share code, notes, and snippets.

@jadudm
Created November 11, 2013 12:37
Show Gist options
  • Save jadudm/7412577 to your computer and use it in GitHub Desktop.
Save jadudm/7412577 to your computer and use it in GitHub Desktop.
Craft of Electronics Tutorial: Turning an LED On http://craftofelectronics.org/
// Turning things on and off.
void setup () {
// First, tell the Arduino we want to make one
// of our pins an OUTPUT pin.
pinMode(13, OUTPUT);
}
void loop () {
// Tell the Arduino to turn on one of our pins.
digitalWrite(13, HIGH);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment