Initialize git

This commit is contained in:
Kazimierz Ciołek
2026-02-25 01:56:31 +01:00
commit f17984820f
699 changed files with 276407 additions and 0 deletions

22
monitor.py Normal file
View File

@@ -0,0 +1,22 @@
import serial
import time
import sys
port = "COM5"
baudrate = 115200
print(f"Waiting for {port}...")
while True:
try:
with serial.Serial(port, baudrate, timeout=1) as ser:
print("Connected! Reading...")
while True:
line = ser.readline()
if line:
try:
print(line.decode('utf-8', errors='replace'), end='', flush=True)
except:
pass
except serial.SerialException as e:
print(f"Exception: {e}")
time.sleep(0.5)