Question: Imagine the 4 user LEDs forming a 4-bit binary number. Create a C/C++ program to have the 4 LEDs blink in such a way that
Imagine the 4 user LEDs forming a 4-bit binary number. Create a C/C++ program to have the 4 LEDs blink in such a way that all 16 possible values of the 4-bit binary number are shown within a timespan of 16 seconds; the values appear one after another every second. Assume that when an LED is on, it represents a 1; otherwise it represents a 0. The values do not have to appear in any particular sequence. Consider setting the LEDs to the timer mode.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
