/* * Written by Owen Bailey who is also kingbobj */ void setup() { pinMode(2, INPUT_PULLUP); pinMode(10, OUTPUT); } void loop() { int pusshed = digitalRead(2); if(pusshed == LOW){ digitalWrite(10, LOW); }else{ digitalWrite(10, HIGH); } }