From 7ffdd3fb30a7a64a5f96c8390948e52815e9155c Mon Sep 17 00:00:00 2001 From: Shy Date: Mon, 13 Mar 2017 18:45:17 +0100 Subject: [PATCH] Adjusted Kitchenlight defaults --- c4ctrl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c4ctrl.py b/c4ctrl.py index db216f6..2525c4a 100755 --- a/c4ctrl.py +++ b/c4ctrl.py @@ -416,7 +416,7 @@ class Kitchenlight: def matrix(self, lines=8): """Set to mode "matrix".""" - if int(lines) > 30: lines = 30 # Maximal line count + if int(lines) > 31: lines = 31 # Maximal line count d = bytearray(8) v = memoryview(d) # Screen 2 @@ -480,7 +480,7 @@ class Kitchenlight: # Screen 7 is Strobo, which is disabled because it seems to do harm to # the Kitchenlight. Evil strobo! - def text(self, text="Hello World", delay=200): + def text(self, text="Hello World", delay=250): """Set to mode "text".""" text = text.encode("ascii", "ignore") d = bytearray(8 + len(text) + 1)