Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Namespaces | Classes | Functions | Variables
lampda::logic Namespace Reference

Handle the main high level logics. More...

Namespaces

namespace  alerts
 Handle the system alerts, that are displayed on the RGB indicator.
 
 
namespace  behavior
 Main system behavior handle.
 
namespace  brightness
 Handle the LED output brightness.
 
namespace  button_bindings
 Handle the links between click counts and the configurable default behaviors.
 
namespace  cli
 Handle the serial command line interface.
 
namespace  indicator
 Handle the indicator brightness.
 
namespace  inputs
 Handle the system input, the behavior associated to the button inputs.
 
namespace  inputs_bluetooth
 Handle the system input, the behavior associated to the bluetooth inputs.
 
namespace  power
 Main entry point of the power handling of the board. Responsible the main state of the power handling.
 
namespace  statistics
 Handle update and tracking of user use statistics.
 
namespace  user_command_queue
 Defer the user commands to the main loop.
 

Classes

class  SunriseTimer
 Timer to start the system and ramp up brightness until we reach back the latest user set brightness. More...
 
class  SunsetTimer
 Timer to slowly ramp down the brightness until zero then shutdown. More...
 
class  SunTimerBase
 Sun timer operations handler All sun operations are exclusive, thay cannot run at the same time. More...
 

Functions

static void sun_timers_loop_task ()
 Single task loop for both timers. Must be a static (free, non-capturing) function. The sunset and sunrise timers are mutually exclusive, so at most one is active.
 
void sun_timers_init_all ()
 init all timers: call once on program start
 
void sun_timers_cancel_all ()
 
void sun_timers_brightness_lock_all (const bool shouldLock)
 

Variables

SunsetTimer sunset_timer
 object to access to control the timers
 
SunriseTimer sunrise_timer
 
static bool isInit = false
 

Detailed Description

Handle the main high level logics.

Variable Documentation

◆ sunset_timer

SunsetTimer lampda::logic::sunset_timer

object to access to control the timers

OBJECTS