Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: LEDColors.h
- Revision:
- 7:19da09fe546b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LEDColors.h Mon Apr 14 03:04:28 2014 +0000 @@ -0,0 +1,17 @@ +#ifndef ledcolors__h__ +#define ledcolors__h__ + +class LEDColors { +public: + LEDColors(); + void tick10ms(); + void flashRed(uint32_t); + void flashBlue(uint32_t); + void flashGreen(uint32_t); + void flashWhite(uint32_t); +private: + DigitalOut *ledRed, *ledBlue, *ledGreen; + uint32_t redTimer, blueTimer, greenTimer; +}; + +#endif \ No newline at end of file