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

Revisions of main.cpp

Revision Date Message Actions
0:dc7c5287057e 2013-10-17 Final File  Diff  Annotate