// always put int values and bool and what not here
int led1 = 13;
int pushbutton = 2;
bool buttonState = false;
void setup() {
// put your setup code here, to run once:
pinMode (pushbutton, INPUT);
pinMode (led1, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
buttonState = digitalRead(pushbutton);
if (buttonState == HIGH) {
digitalWrite (led1, HIGH);
}
else {
digitalWrite (led1, LOW);
}
}