コード例 #1
0
def test_raw(port):
    nexserial = PySerialNex(port)
    # nexserial.write("page 0")
    nexserial.write("page page1")
    print(nexserial.read_all())

    nexserial.write("get page")
    time.sleep(0.1)
    print(nexserial.read_all())

    nexserial.close()
コード例 #2
0
def test_raw(port):
    nexserial = PySerialNex(port)

    # nexSerial.init()
    # nexserial.write("bkcmd=3")

    # nexserial.write("page 0")
    nexserial.write("page page1")
    print(nexserial.read_all())

    nexserial.write("sendme")
    time.sleep(0.1)
    print(nexserial.read_all())

    nexserial.close()