Changed encoding for Kitchenlight-text to ascii
This commit is contained in:
parent
51b6846b30
commit
3f9da0e663
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ class Kitchenlight:
|
|||
|
||||
def text(self, text="Hello World", delay=200):
|
||||
"""Set to mode "text"."""
|
||||
text = text.encode("latin1", "ignore")
|
||||
text = text.encode("ascii", "ignore")
|
||||
d = bytearray(8 + len(text) + 1)
|
||||
v = memoryview(d)
|
||||
# Screen 8
|
||||
|
|
Loading…
Add table
Reference in a new issue