ICP - Sang-Ly/TCP-1-and-Bonus GitHub Wiki
ICP - 1
Blink LEDs
Objective
Purpose of this ICP was to design and program the circuit:
-
Three LEDs
-
Green LED always ON
-
Button press
-
Other two LEDs blink
Steps
-
Installed Arduino IDE.
-
Design circuit by given diagram.
-
Run source code and upload it to Arduino device.
-
Modify source code to match ICP requirements.
-
Upload code to Arduino chip.
-
Press the button to start process.
Source Code
-
Initialized input and outputs
-
When button is not pressed
-
Set LED Green ON, Red Off, White Off
-
Button Pressed
-
Set Green On, Red On, White off + delay + Green On, Red Off, White On - this part of the code in Loop mode