示例#1
0
def main():
    global root

    ser = serialport.tserial()
    ser.config_comport()
    ser.ConnectPort(True)
    print('Done')
示例#2
0
def main():
    global root

    ser = serialport.tserial()
    ser.config_comport()
    ser.ConnectPort(True)
    print('Done')
示例#3
0
def init(top, gui, arg=None):
    global w, top_level, root
    w = gui
    top_level = top
    root = top
    print('Init TestComport(support)')
    global ser1

    ser1 = serialport.tserial() #TestComport1.serialconfig['baudrate'], TestComport1.serialconfig['comport'])        # start serial port instance
示例#4
0
def init(top, gui, arg=None):
    global w, top_level, root
    w = gui
    top_level = top
    root = top
    print('Init TestComport(support)')
    global ser1

    ser1 = serialport.tserial(
    )  #TestComport1.serialconfig['baudrate'], TestComport1.serialconfig['comport'])        # start serial port instance