updated to 4.0

This commit is contained in:
chk
2026-01-04 09:58:35 +01:00
parent ab4646300d
commit 0a7ff5eae4
5 changed files with 7 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import serial
ser = serial.Serial("/dev/ttyS0", 115200, timeout=1)
ser = serial.Serial("/dev/ttyUSB0", 115200, timeout=1)
#ser.write(open("Config_DollarDollar.txt","rb").read())
@@ -10,9 +10,9 @@ ser.write(serialcmd.encode())
print(serialcmd)
f = open("Config_DollarDollar.txt","rb")
#for l in f:
#print(l)
#ser.write(l)
for l in f:
print(l)
ser.write(l)
print("test")
@@ -20,4 +20,4 @@ while ser.in_waiting > 0:
line = ser.readline().decode('utf-8').rstrip()
print(line)
ser.close()
ser.close()