Arduino UNO code.
Write a flow chart and the code for the below.
Make a binary clock
A binary clock displays
- hour value between 1 and 12 using red LED’s (binary count to 12
uses 4 red LEDs)
- a minute value between 0 and 59 using 6 green LED’s (binary
count to 59 uses 6 LEDs)
- AM displays the blue LED in the off condition and PM displays
the blue LED in the on condition
Setting the clock time
- The clock can be set at any time using calibration switches and
potentiometer dials.
- Hour value is set using slide switch 1 (calibrate hour switch)
and potentiometer 1 (hour adjust potentiometer). Hour calibration
must incorporate the ability to change between AM and PM.
- The minute value is set using slide switch 2 (calibrate minute
switch)