[apps] Extinction and backlight timers

Change-Id: I91daf6ab78fff9ec4bc924915a17a559f9ddfa63
This commit is contained in:
Émilie Feral
2017-04-24 16:57:52 +02:00
parent 3d0917070e
commit c2b6777b58
10 changed files with 94 additions and 7 deletions

View 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