Back to Parent

Program the LED’s to alternate blinks i.e. when LED 1 turns on, LED 2 turns off, then when LED 2 turns on, LED 1 turns off. (video/code: below):

The string command of the function "if and else if" creates a half-second delay between the alternating of the red and orange LED lights. Physically, I have changed out the color of the LED lights. Red is now coordinated with LED1 and Ogrand with LED2. Two separate resistors have been placed at each LED light's anode, with Red(D3) and Orange (D2) and a red cathode jumper for the Red LED and a yellow cathode jumper for the Orange LED, which both jump the breadboard's power raid. The same black ground jumper jumps the microcontroller's ground pin to the breadboard's power rail. 


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0