Lab 3/ HW 3 (9/6)
//Program to turn on/off two LEDs with buttons const int LED1=9; //The LED is connected to pin 9 const int LED2=7; const int BUTTON1=2; //The Button is connected to pin 2 const int BUTTON2=4; boolean lastButton = LOW; //Variable containing the previous button state boolean currentButton = LOW; //Variable containing the current button state boolean ledOn = false; //The present state of the LED (on/off) void setup() { pinMode (LED1, OUTPUT); ...