Monday, May 2, 2016

Programming Two LEDs

In programming Two LEDs, we used the code provided to light up two LED lights on the breadboard.We added a second LED to the breadboard along with another jump wire and resistor.  Below is a video of the green and red LED light blinking on and off after each other.


We modified the provided code to have the red LED blink two times and have the green LED blink once. Below is a video of the red LED blinking twice and the green LED blink once. 






For B, We modified the provided code to make the green and red LED on for 2 seconds , then only the green LED for 2 seconds and then the red LED for 2 seconds. Below is a video of  the green and red LED on for 2 seconds , then only the green LED for 2 seconds and then the red LED for 2 seconds.





For C, We modified the provided code to make the green LED blink 3 times and then have the red LED to blink once. Below is a video of the green LED blinking 3 times and the red LED blinking once.




No comments:

Post a Comment