C++ DevKit
C++ set of OOP library
|
A base class used to add blinking feature to widgets. To do so, this widget must inherit from Blinker. More...
#include <widget.h>
Public Member Functions | |
void | set_blink_us (uint32_t blink_period=1000000) |
Set the blink period in microseconds. | |
bool | has_blinking_changed () |
return the status of the flag blink_phase_changed | |
void | clear_blinking_phase_change () |
set blink_phase_changed = False | |
virtual void | compute_blinking_phase () |
compute if the system clock divided by the blink_period is odd or even and if this has changed since the last cycle. | |
A base class used to add blinking feature to widgets. To do so, this widget must inherit from Blinker.
bool Blinker::has_blinking_changed | ( | ) |
return the status of the flag blink_phase_changed
void Blinker::set_blink_us | ( | uint32_t | blink_period = 1000000 | ) |
Set the blink period in microseconds.
blink_period | default to 1 second |