void setup() { // put your setup code here, to run once: // designate pin 13 as an OUTPUT pin for the LED pinMode (13, OUTPUT); // designate pin 8 as an INPUT for the push button switch pinMode (8, INPUT); // designate pin 9 as an INPUT for the SPDT switch pinMode (9, INPUT); } void loop() { // put your main code here, to run repeatedly: // if pin 8 is on or pin 9 is on if (digitalRead(8) || digitalRead(9)){ // then set pin 13 on (LED) digitalWrite (13, HIGH); } else { // set pin 13 off (LED) digitalWrite (13, LOW);} }