#define SW 10#define LED 13void setup(){ pinMode(SW, INPUT_PULLUP); pinMode(LED, OUTPUT);}void loop(){ if(digitalRead(SW)==LOW) { digitalWrite(LED,HIGH); } else { digitalWrite(LED,LOW); }}