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.
Dependencies: PololuLedStrip mbed
Effects.h
00001 #ifndef EFFECTS_H 00002 #define EFFECTS_H 00003 00004 #include "mbed.h" 00005 #include "LEDs.h" 00006 #include "Rotary.h" 00007 00008 class Effects { 00009 public: 00010 Effects(LEDs *_leds); 00011 void doEffect(uint8_t effect, Rotary::Action action); 00012 void noEffect(); 00013 00014 private: 00015 void scroll(uint32_t ms, Rotary::Action action); 00016 void knightRider(uint32_t ms); 00017 void blink(bool firstTime, Rotary::Action action); 00018 void makeRainbow(bool firstTime, uint32_t ms, Rotary::Action action); 00019 void colorChase(uint32_t ms, Rotary::Action action); 00020 void leftRightColorFade(uint32_t ms, Rotary::Action action); 00021 00022 LEDs *leds; 00023 uint32_t lastUpdate; 00024 uint8_t lastEffect; 00025 Timer timer; 00026 }; 00027 00028 #endif
Generated on Tue Jul 19 2022 02:43:48 by
1.7.2