mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
17 lines
358 B
C++
17 lines
358 B
C++
#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;
|
|
bool fire() override;
|
|
};
|
|
|
|
#endif
|
|
|