Simple example of using a rotary encoder to drive an RGB LED. At first, you can control the brightness of the red LED. Push the encoder shaft in and you can then control green. Push again to control blue. Then it repeats.

Dependencies:   mRotaryEncoder mbed

Revisions of main.cpp

Revision Date Message Actions
1:126964580159 2016-12-29 Made PWM output faster File  Diff  Annotate
0:3e6a4dfbcb88 2016-12-29 Initial comming File  Diff  Annotate