Control an LED Strip with different operation modes using two pushbuttons and a slider. The second pushbutton cycles through the modes. The first mode is Color Select mode, in which the user can select (using the first pushbutton) and alter (using the slider) the value of each of the R, G, and B values. The second mode is Strobe mode, in which the user selects the frequency at which the previously chosen color blinks using the slider. The last mode is Flow mode, in which the mbed randomly generates new RGB values to gradually shift toward and the user selects the shift rate using the slider.

Dependencies:   mbed

Download repository: zip gz

Files at revision 0:dc7c5287057e

Name Size Actions
[up]
main.cpp 4859 Revisions Annotate
mbed.bld 65 Revisions Annotate