Skip to content

Instantly share code, notes, and snippets.

@mrichardson23
Created June 13, 2013 17:30
Show Gist options
  • Save mrichardson23/5775607 to your computer and use it in GitHub Desktop.
Save mrichardson23/5775607 to your computer and use it in GitHub Desktop.
Basic setup code for Arduino programming session
#define BUTTON_PIN 2
#define GREEN_LED 3
#define YELLOW_LED 4
#define RED_LED 5
#define POTENTIOMETER 0
void setup() {
pinMode(GREEN_LED, OUTPUT);
pinMode(YELLOW_LED, OUTPUT);
pinMode(RED_LED, OUTPUT);
pinMode(BUTTON_PIN, INPUT);
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment