Compare commits
2 Commits
c188c00b43
...
5286a9de73
| Author | SHA1 | Date | |
|---|---|---|---|
| 5286a9de73 | |||
| 0470b3f280 |
@@ -1,2 +1,8 @@
|
|||||||
.venv/*
|
.venv/*
|
||||||
.idea/*
|
.idea/*
|
||||||
|
|
||||||
|
#Build files
|
||||||
|
build/*
|
||||||
|
dist/*
|
||||||
|
*.pyz
|
||||||
|
*.spec
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
run:
|
||||||
|
python3 __main__.py
|
||||||
|
|
||||||
|
package:
|
||||||
|
rm p1-fopper.pyz && python3 -m zipapp . -o p1-fopper.pyz
|
||||||
@@ -8,6 +8,10 @@ OUTPUT_PORT = '/dev/ttyUSB0'
|
|||||||
dataInput = serial.Serial(INPUT_PORT, 115200, timeout=1)
|
dataInput = serial.Serial(INPUT_PORT, 115200, timeout=1)
|
||||||
dataOutput = serial.Serial(OUTPUT_PORT, 115200, timeout=1)
|
dataOutput = serial.Serial(OUTPUT_PORT, 115200, timeout=1)
|
||||||
|
|
||||||
|
def lees():
|
||||||
|
while True:
|
||||||
|
line = dataInput.readline()
|
||||||
|
print(line)
|
||||||
|
|
||||||
def verzend(telegram):
|
def verzend(telegram):
|
||||||
while True:
|
while True:
|
||||||
Reference in New Issue
Block a user