mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps] Extinction and backlight timers
Change-Id: I91daf6ab78fff9ec4bc924915a17a559f9ddfa63
This commit is contained in:
16
apps/backlight_dimming_timer.h
Normal file
16
apps/backlight_dimming_timer.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef APPS_BACKLIGHT_DIMMING_TIMER_H
|
||||
#define APPS_BACKLIGHT_DIMMING_TIMER_H
|
||||
|
||||
#include <escher.h>
|
||||
|
||||
class BacklightDimmingTimer : public Timer {
|
||||
public:
|
||||
BacklightDimmingTimer();
|
||||
private:
|
||||
constexpr static int k_idleBeforeDimmingDuration = 30*1000; // In miliseconds
|
||||
constexpr static int k_dimBacklightBrightness = 0; // Intensity value from 0 to 15
|
||||
void fire() override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user