From d535b8b16ccfc3c0e95584b5819e89e7e26ef282 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sat, 15 Aug 2020 16:55:56 +0100 Subject: [PATCH] k9: watch.py.in: Fix backlight Currently the backlight is permanently on at its lowest level. The backlight is so dim that this is almost impossible to detect. I only found it when lying in a field in total darkness and observing that the screen wasn't quite as black as I expected. Signed-off-by: Daniel Thompson --- wasp/boards/k9/watch.py.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wasp/boards/k9/watch.py.in b/wasp/boards/k9/watch.py.in index 5126a87..68f69b0 100644 --- a/wasp/boards/k9/watch.py.in +++ b/wasp/boards/k9/watch.py.in @@ -43,6 +43,9 @@ class Backlight(object): self.set(level) def set(self, level): + """K9 backlight is very weak so we avoid lo in its own because it is + pointless. + """ hi = 1 mid = 1 lo = 0 @@ -54,6 +57,8 @@ class Backlight(object): hi = 0 elif level == 1: mid = 0 + else: + lo = 1 self.hi(hi) self.mid(mid)