/*----------------------------------------------------------------------------- * Author: Nelso G. Jost (nelsojost@gmail.com) * License: GPLv2 * Purpose: Provide the Blinker class for scheduling a blink process. *---------------------------------------------------------------------------*/ #ifndef BLINKER_H #define BLINKER_H #include class Blinker { public: Blinker(int pin); Ticker ticker; void activate(float interval); void deactivate(void); protected: int _pin; bool _state = true; float _interval; static void _update(Blinker *b); }; #endif