Adjusted Kitchenlight defaults
This commit is contained in:
parent
b1e648179f
commit
7ffdd3fb30
1 changed files with 2 additions and 2 deletions
|
@ -416,7 +416,7 @@ class Kitchenlight:
|
||||||
|
|
||||||
def matrix(self, lines=8):
|
def matrix(self, lines=8):
|
||||||
"""Set to mode "matrix"."""
|
"""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)
|
d = bytearray(8)
|
||||||
v = memoryview(d)
|
v = memoryview(d)
|
||||||
# Screen 2
|
# Screen 2
|
||||||
|
@ -480,7 +480,7 @@ class Kitchenlight:
|
||||||
# Screen 7 is Strobo, which is disabled because it seems to do harm to
|
# Screen 7 is Strobo, which is disabled because it seems to do harm to
|
||||||
# the Kitchenlight. Evil strobo!
|
# the Kitchenlight. Evil strobo!
|
||||||
|
|
||||||
def text(self, text="Hello World", delay=200):
|
def text(self, text="Hello World", delay=250):
|
||||||
"""Set to mode "text"."""
|
"""Set to mode "text"."""
|
||||||
text = text.encode("ascii", "ignore")
|
text = text.encode("ascii", "ignore")
|
||||||
d = bytearray(8 + len(text) + 1)
|
d = bytearray(8 + len(text) + 1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue