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

Handle the indicator brightness. More...

Functions

void set_brightness_level (const uint8_t level)
 Set the brightness of the RGB indicator. Indicator level can be 0 : indicator and alerts displayed as 100% brightness 1 : indicator off, alerts displayed as 25% brightness 2 : indicator and alerts displayed as 25% brightness.
 
uint8_t get_brightness_level ()
 Get the brightness of the RGB indicator. Indicator level can be 0 : indicator and alerts displayed as 100% brightness 1 : indicator off, alerts displayed as 25% brightness 2 : indicator and alerts displayed as 25% brightness.
 
bool should_indicator_be_visible ()
 indicates if the indicator should be visible or not
 

Variables

static uint8_t _level = 0
 Internal indicator brightness level (1-3)
 
static uint32_t levelUpdateTime = 0
 

Detailed Description

Handle the indicator brightness.