removed old main app

This commit is contained in:
d3m1g0d
2019-05-30 17:52:27 +02:00
parent 659fb74071
commit c48da832e0

21
main.py
View File

@@ -1,21 +0,0 @@
# main.py - the main program file of the TeraHz project
# All code in this file is licensed under the ISC license, provided in LICENSE.txt
import serial as ser
#global config
# TODO: move this to another file
uartpath = '/dev/ttyUSB0'
uartbaud = 115200
uarttout = 5
print('TeraHz project')
print('Accessing the serial port')
sp = 'blank'
try:
sp = ser.Serial(uartpath, uartbaud, timeout=uarttout)
except Exception as e:
print('Connection to serial port at {} failed!'.format(uartpath))
raise e
exit()