For this challenge, we modified the code that was provided so that the binary number starts in 0000 all the LEDs will be off. Then we went to 1 which was 0001 and only the first LED will blink. Then we went to 2 which was 0010 and the second LED will blink. Then we went to 3 which was 0011 and the first and the second LED will turn on. We continued this method until all numbers displayed up to 15. Below is a video of the LED lights turning on counting in binary.
No comments:
Post a Comment