USB programming

前端 未结 10 1807
不思量自难忘°
不思量自难忘° 2021-01-30 11:19

I want to program a microcontroller (AVR) to control some leds through USB. It\'s just out of interest in how to build and program USB devices. There are some AVR microcontrolle

10条回答
  •  醉话见心
    2021-01-30 12:16

    I wonder whether your AVB acts as a host or device. I guess your board is a usb device and you need to light the leds on your board. So, it may be a good way to initialize your board as a HID device. To achieve this goal, you need a HID gadget software stack running on your board. References as follows:

    1. gadget framework in uboot
    2. HID specefication usb org
    3. debug tools such as USB Protocol Analyzer
    4. libusb running on Host PC to send packets

提交回复
热议问题