Files
Upsilon/apps/backlight_dimming_timer.h
Émilie Feral c644a8d4f7 [escher] Fix bug: do not redraw window at each timer fire but only for
timer requiring redraw

Change-Id: Ia39a35185a4836809970f5ba77cc76a8b2e6ee26
2017-05-23 15:25:00 +02:00

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