void setup() {
// put your setup code here, to run once:
pinMode(13, OUTPUT);
pinMode(2, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
int push = analogRead(2);
if (push == 1) {
digitalWrite(13, LOW);
} else {
digitalWrite(13,HIGH);
}
}