Commit bace661a authored by Amadej Arh's avatar Amadej Arh
Browse files

izboljsava

parent 014bd8fe
#!/usr/bin/env bash
gcc -Wall -Wextra -O2 view.c -oview
tail -c +1 -F beshrukt.uk2 | ./view out.pgm 640 480
\ No newline at end of file
tail -c +1 -F beshrukt.uk2 | ./view out.pgm 640 480 > /dev/null &
python serjial.py
\ No newline at end of file
......@@ -8,7 +8,11 @@ import time
def main():
with open("logfile", "a+") as log:
with open("beshrukt.uk2", "wb+") as smolOut:
ser = serial.Serial("/dev/ttyUSB1", 19200)
try:
ser = serial.Serial("/dev/ttyUSB1", 19200)
except:
ser = serial.Serial("/dev/ttyUSB0", 19200)
print(ser.name)
print("\033[2J")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment