SEARCH
RESULTS
Display

MAKE THIS!
1 vote
DIFFICULTY
Here's a little project that uses sequenced lighting to mimic the car from Knight Rider (remember the early 80s?).

The output LEDs smoothly run back and forth at the push of a button (on In_1).

The code is essentially made in two section.
1. If the button is pressed, sequenct and fade the lights
2. If the button is not pressed, slowly fade out the lights from whatever they were.
MAKE THIS!
DIFFICULTY
This program implements a 3-bit binary counter in LEDs.

Input 1: Button
Output A: LED
Output B: LED
Output C: LED

As long as the button is held down, the program counts from 0 to 7 (and then repeats), with a 1 second delay in between each count. The value of the counter is displayed on three LEDs, with the lowest bit on Output A and highest on Output C.

This a translation of this exercise: http://rooseveltcs.org/courses/intro-to-cs/assignments/#assign11