summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-08-15 15:55:56 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-08-15 15:55:56 (GMT)
commitd535b8b16ccfc3c0e95584b5819e89e7e26ef282 (patch)
treec02c0161d572a9696bbcd8ca6dcbf8576a257cc0
parent37e805a44afd2ce6719fd300d69bc310229c4543 (diff)
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 <daniel@redfelineninja.org.uk>
-rw-r--r--wasp/boards/k9/watch.py.in5
1 files changed, 5 insertions, 0 deletions
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)