Click here to Skip to main content
15,799,257 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
The question has been revised.....and posted again........

What I have tried:

Can someone help me change this code to Python?
Updated 13-May-17 23:24pm

1 solution

You do not talk to the USB "port". It is not a port. It is an expansion bus, not unlike the slots on your motherboard.

You talk to the devices on the bus. How the device exposes itself to your code is what is going to determine how you talk to it. For example, if your device exposes itself as a serial port, you use normal serial port methods to talk to it.

Oh, and your code doesn't do anything other that fill a buffer with data. That's it.

and I don't know Python.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900