Public 成员函数 | |
__init__ (self, port='COM4', baudrate=115200, debug_mode=False) | |
构造函数,设置串口端口和波特率。 | |
send_command (self, command) | |
发送命令。 | |
read_serial_data (self) | |
读取串口数据。 | |
close_serial (self) | |
关闭串口。 | |
Public 属性 | |
ser | |
Debug_Mode | |
类集成了串口传输相关方法。
__init__ | ( | self, | |
port = 'COM4', | |||
baudrate = 115200, | |||
debug_mode = False ) |