/* Button Push * ----------- * * Detects if the button has been pressed and lights up an LED * * Christian Nold & Erica Calogero * */ int LED = 13; int Button = 10; int value = 0; void setup() { pinMode(LED, OUTPUT); // initializes digital pin 13 as output pinMode(Button, INPUT); // initializes digital pin 10 as input } void loop() { value = digitalRead(Button); // reads the value at a digital input digitalWrite(LED, value); }