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.
LEDColors.h@7:19da09fe546b, 2014-04-14 (annotated)
- Committer:
- silverpanda
- Date:
- Mon Apr 14 03:04:28 2014 +0000
- Revision:
- 7:19da09fe546b
with LED flashes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
silverpanda | 7:19da09fe546b | 1 | #ifndef ledcolors__h__ |
silverpanda | 7:19da09fe546b | 2 | #define ledcolors__h__ |
silverpanda | 7:19da09fe546b | 3 | |
silverpanda | 7:19da09fe546b | 4 | class LEDColors { |
silverpanda | 7:19da09fe546b | 5 | public: |
silverpanda | 7:19da09fe546b | 6 | LEDColors(); |
silverpanda | 7:19da09fe546b | 7 | void tick10ms(); |
silverpanda | 7:19da09fe546b | 8 | void flashRed(uint32_t); |
silverpanda | 7:19da09fe546b | 9 | void flashBlue(uint32_t); |
silverpanda | 7:19da09fe546b | 10 | void flashGreen(uint32_t); |
silverpanda | 7:19da09fe546b | 11 | void flashWhite(uint32_t); |
silverpanda | 7:19da09fe546b | 12 | private: |
silverpanda | 7:19da09fe546b | 13 | DigitalOut *ledRed, *ledBlue, *ledGreen; |
silverpanda | 7:19da09fe546b | 14 | uint32_t redTimer, blueTimer, greenTimer; |
silverpanda | 7:19da09fe546b | 15 | }; |
silverpanda | 7:19da09fe546b | 16 | |
silverpanda | 7:19da09fe546b | 17 | #endif |