initial commit

This commit is contained in:
2022-06-05 14:20:14 +02:00
commit 76e227ae9e
3 changed files with 136 additions and 0 deletions

12
projector.py Normal file
View File

@@ -0,0 +1,12 @@
from serial import Serial
STX = chr(0x02)
ETX = chr(0x03)
if __name__ == "__main__":
with Serial("/dev/ttyAMA0", 9600, timeout=1) as ser:
ser.write((STX + "ADZZ" + ";" + "PON" + ETX).encode())
while not (response := ser.readline()):
pass
print(response)