2021-08-26 18:49:18 +02:00
|
|
|
from MAXCube import CUL
|
|
|
|
from MAXPacketHandler import MAXPacketHandler
|
2021-07-21 21:33:05 +02:00
|
|
|
|
2021-08-26 18:49:18 +02:00
|
|
|
DEBUG = True
|
2021-07-21 21:33:05 +02:00
|
|
|
|
2021-08-26 18:49:18 +02:00
|
|
|
if __name__ == '__main__':
|
|
|
|
cube = CUL("123456")
|
|
|
|
cube.connect("COM11")
|
|
|
|
print(cube.version_string())
|
|
|
|
handler = MAXPacketHandler(cube)
|
|
|
|
handler.receive_loop()
|
|
|
|
cube.disconnect()
|