Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
12 years, 6 months ago.
Trying to write to LED from desktop application via USB
I'm using libusb in a C++ program on my desktop. I'm trying to write to the microcontroller via USB to turn on the LEDs (the desktop app in question is a Qt app with 4 buttons that allows you to turn on/off the LEDs....ideally). I'm doing this via interrupt transfers. My question is the following: when I do a lsusb on the microcontroller, I only see one interrupt endpoint and it's for data FROM the device TO the host. I tried using USBHID but I don't know if that's what I want to use. Is there a way to create more endpoints using the USBDevice class?
1 Answer
12 years, 6 months ago.
Hi Magdiel, why dont you try with serial communications?. You can do an application in Visual C# or Visual Basic that connect to the mbed Serial USB Port and then you can control with serial commands the leds you want to turn on/off
Greetings