Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
sunset_timer.h
Go to the documentation of this file.
1
5#ifndef UTILS_SUNSET_TIMER_H
6#define UTILS_SUNSET_TIMER_H
7
8#include <cstdint>
9
10namespace lampda {
11namespace logic {
13namespace sunset {
14
16void init();
17
19void add_time_minutes(const uint8_t time_minutes);
20
22void bump_timer();
23
25void cancel_timer();
26
28bool is_enabled();
29
31void lock_brightness_update(bool shouldLock);
32
33} // namespace sunset
34} // namespace logic
35} // namespace lampda
36
37#endif
void lock_brightness_update(bool shouldLock)
Lock the hability of the sunset timer to control the brightness.
Definition: sunset_timer.cpp:191
void bump_timer()
signal to the timer that some time must be added. Limited to 10 minutes
Definition: sunset_timer.cpp:154
void add_time_minutes(const uint8_t time_minutes)
add some time to the sunset timer. Limited to 10 minutes
Definition: sunset_timer.cpp:124
void cancel_timer()
cancel the current active timer
Definition: sunset_timer.cpp:171
void init()
call once on program start
Definition: sunset_timer.cpp:118
bool is_enabled()
True if timer is running.
Definition: sunset_timer.cpp:189
Program scope.
Definition: control_fixed_modes.hpp:12