|
Lamp-Da 0.1
A compact lantern project
|
Blink the main output when the battery level goes under a threshold. More...
Go to the source code of this file.
Classes | |
| class | lampda::logic::battery_blink::BlinkTracker |
| Decide when to blink, independently of the hardware. More... | |
Namespaces | |
| namespace | lampda |
| Program scope. | |
| namespace | lampda::logic |
| Handle the main high level logics. | |
| namespace | lampda::logic::battery_blink |
| Signal the battery level steps to the user, by blinking the output during the output mode. | |
Functions | |
| constexpr uint8_t | lampda::logic::battery_blink::get_blink_count (const uint16_t level) |
| Return the number of blinks of a battery level. | |
| void | lampda::logic::battery_blink::signal_output_on () |
| Call when the output mode is entered. | |
| void | lampda::logic::battery_blink::loop () |
| Call on each main loop of the output mode, before the user loop. | |
| void | lampda::logic::battery_blink::set_enabled (const bool isEnabled) |
| Enable or disable the blinks. Saved with the system parameters. | |
| bool | lampda::logic::battery_blink::is_enabled () |
| Return true if the blinks are enabled. | |
Blink the main output when the battery level goes under a threshold.