parent
d906d0811d
commit
66b0a1d562
|
@ -1,15 +1,14 @@
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
current_path = os.path.dirname(os.path.realpath(__file__))
|
current_path = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
import threading
|
||||||
try:
|
try:
|
||||||
|
import pystray
|
||||||
|
from PIL import Image, ImageDraw
|
||||||
import serial
|
import serial
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
print("Please execute 'pip install -r requirements.txt'")
|
||||||
os.system("pip install pyserial")
|
exit()
|
||||||
import serial
|
|
||||||
except ImportError:
|
|
||||||
print("Please execute'pip install -r requirements.txt'")
|
|
||||||
exit()
|
|
||||||
|
|
||||||
host = serial.Serial('COM3', 9600)
|
host = serial.Serial('COM3', 9600)
|
||||||
|
|
||||||
|
@ -19,5 +18,7 @@ while True:
|
||||||
output = output.decode("ASCII")
|
output = output.decode("ASCII")
|
||||||
output = output.strip()
|
output = output.strip()
|
||||||
print(output)
|
print(output)
|
||||||
|
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
break
|
break
|
|
@ -1 +1,3 @@
|
||||||
|
Pillow==9.2.0
|
||||||
pyserial==3.5
|
pyserial==3.5
|
||||||
|
pystray==0.19.4
|
||||||
|
|
Loading…
Reference in New Issue