/* FlashLed.h - Flash LED Class Header File */ #ifndef FlashLed_h // one time wrapper #define FlashLed_h // wrapper definition #include #include "PulseLed.h" #define BASECLASS PulseLed class FlashLed : public BASECLASS { private: bool _flashing = false; // true when LED is flashing int _onTime = 1000; // flash on time in milliseconds int _offTime = 1000; // flash off time in milliseconds unsigned long _timer = 0; // millisecond timer int _cycles = 0; // flash cycles counter int _count = 0; // flash request count public: void setOnTime (int onTime); int getOnTime (); void setOffTime (int offTime); int getOffTime (); void on (); void off (); void toggle (); void flash (); void flash (int count); void update (); }; #endif // end wrapper