Lab: Digital Input and Output
In this lab, I used an Arduino on a breadboard to control two LED lights with a button. The circuit is powered via the Arduino over USB. Power passes through a button while two LEDs are connected to the Arduino. In the Arduino IDE, we used a program (credit to David) that determines if the button is being pressed. When the button is pressed, it turns off one LED, and turns the other LED on.