问题
I was doing some work on MSP430 series MCU.
I have designed a GUI (using wxPython). Now I want to control microcontroller with GUI, but I can't find any modules in python that can send data to the USB port so that the microcontroller can identify it.
Does there exist any module that can send and receive data to/from USB port?
Thanks in advance.
回答1:
libusb is what you're after. PyUSB may be worth taking a look at also.
回答2:
Does the board expose a serial port over the USB? If so, I highly recommend pyserial.
来源:https://stackoverflow.com/questions/7817026/accessing-usb-port-programmatically