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

Well I'm wanting to use C++ and the libusb library.

posted by Magdiel Lorenzo 12 Apr 2013

Ok, i just trying to help you

Greetings

posted by Ney Palma 12 Apr 2013

Thank you, I appreciate it :)

posted by Magdiel Lorenzo 16 Apr 2013