removed old main app
This commit is contained in:
21
main.py
21
main.py
@@ -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()
|
|
||||||
Reference in New Issue
Block a user