YEET
This commit is contained in:
parent
c0931a8087
commit
ce24054458
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@ import string
|
|||
import base64
|
||||
from queue import Queue
|
||||
from threading import Thread
|
||||
import subprocess
|
||||
|
||||
NULL_CHAR = chr(0)
|
||||
|
||||
|
@ -158,6 +159,9 @@ def message_collector(messagequeue):
|
|||
keyboard.printstring('\n' * 32)
|
||||
else:
|
||||
keyboard.printstring(message + '\n')
|
||||
args = [str(ord(s)) for s in message if 0 < ord(s) < 255][:20]
|
||||
subprocess.run(["i2cset", "-y", "1", "8", "0"] + args + ['i'])
|
||||
time.sleep(int(len(args) * 1.5))
|
||||
keyboard.reset_color()
|
||||
keyboard.file.flush()
|
||||
if messagequeue.empty():
|
||||
|
|
Loading…
Reference in a new issue