Created makefile, organized files, updated gitignore

This commit is contained in:
Juul
2025-07-16 18:05:37 +02:00
parent 0470b3f280
commit 5286a9de73
6 changed files with 11 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
from time import sleep
import serial
INPUT_PORT = '/dev/ttyUSB0'
OUTPUT_PORT = '/dev/ttyUSB0'
dataInput = serial.Serial(INPUT_PORT, 115200, timeout=1)
dataOutput = serial.Serial(OUTPUT_PORT, 115200, timeout=1)
def lees():
while True:
line = dataInput.readline()
print(line)
def verzend(telegram):
while True:
for line in telegram:
print(line)
dataOutput.write(line)
sleep(1)