diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-11 08:44:42 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-11 08:44:42 (GMT) |
| commit | eb821c286288dfbabf9a0877814a209fb59a8ca3 (patch) | |
| tree | d101e8dfdde8950669bbf0c82fac69dc4786f2aa /src/displayapp/screens/FlashLight.h | |
| parent | bc01efe95ab26ba579f28d98811c46001f43c5ca (diff) | |
Flashlight starts on at full brightness; to save energy use backed-up brightness when flashlight is off
Diffstat (limited to 'src/displayapp/screens/FlashLight.h')
| -rw-r--r-- | src/displayapp/screens/FlashLight.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/displayapp/screens/FlashLight.h b/src/displayapp/screens/FlashLight.h index ebc69f7..8021197 100644 --- a/src/displayapp/screens/FlashLight.h +++ b/src/displayapp/screens/FlashLight.h @@ -13,15 +13,14 @@ namespace Pinetime { class FlashLight : public Screen { public: - FlashLight(DisplayApp* app, System::SystemTask& systemTask, Controllers::BrightnessController& brightness); + FlashLight(DisplayApp* app, System::SystemTask& systemTask, Pinetime::Controllers::BrightnessController& brightness); ~FlashLight() override; bool OnTouchEvent(Pinetime::Applications::TouchEvents event) override; void OnClickEvent(lv_obj_t* obj, lv_event_t event); private: - void SetIndicators(); - void SetColors(); + void Update(bool on, Pinetime::Controllers::BrightnessController::Levels level); Pinetime::System::SystemTask& systemTask; Controllers::BrightnessController& brightnessController; @@ -29,7 +28,7 @@ namespace Pinetime { lv_obj_t* flashLight; lv_obj_t* backgroundAction; lv_obj_t* indicators[3]; - bool isOn = true; + bool isOn = false; }; } } |
