Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Namespaces | Functions
sunset_timer.h File Reference

Logic of the sunset time, eg the system auto stops after a set delay. More...

Go to the source code of this file.

Namespaces

namespace  lampda
 Program scope.
 
namespace  lampda::logic
 Handle the main high level logics.
 
namespace  lampda::logic::sunset
 Sunset timer handler.
 

Functions

void lampda::logic::sunset::init ()
 call once on program start
 
void lampda::logic::sunset::add_time_minutes (const uint8_t time_minutes)
 add some time to the sunset timer. Limited to 10 minutes
 
void lampda::logic::sunset::bump_timer ()
 signal to the timer that some time must be added. Limited to 10 minutes
 
void lampda::logic::sunset::cancel_timer ()
 cancel the current active timer
 
bool lampda::logic::sunset::is_enabled ()
 True if timer is running.
 
void lampda::logic::sunset::lock_brightness_update (bool shouldLock)
 Lock the hability of the sunset timer to control the brightness.
 

Detailed Description

Logic of the sunset time, eg the system auto stops after a set delay.