Initial commit
This commit is contained in:
12
tcd1304_viewer/serial.py
Normal file
12
tcd1304_viewer/serial.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import serial
|
||||
|
||||
|
||||
class SerialHandler:
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.ser = serial.Serial()
|
||||
self.ser.baudrate = 921600
|
||||
self.ser.port = "/dev/serial0"
|
||||
|
||||
def start(self) -> None:
|
||||
self.ser.open()
|
||||
Reference in New Issue
Block a user