恩,最近弄键盘的时候偶然看到的这个东西
http://www.fourwalledcubicle.com/LUFA.php
感觉还是比较神奇的,他可以把AVR单片机模拟成任意USB设备
- Android Accessory Host
- Audio In Device
- Audio In Host
- Audio Out Device
- Audio Out Host
- Bulk Vendor Device
- Dual MIDI Device
- Dual Virtual Serial Device
- Generic HID Device
- Generic HID Host
- Joystick Device
- Joystick Host
- Keyboard Device
- Keyboard/Mouse Device
- Keyboard Host
- Keyboard Host/Device Dual Mode
- Mass Storage Device
- Mass Storage/Keyboard Device
- Mass Storage Host
- MIDI Device
- MIDI Host
- Mouse Device
- Mouse Host
- Printer Host
- RNDIS (CDC) Ethernet Device
- RNDIS (CDC) Ethernet Host
- Still Image Host
- Virtual Serial Device
- Virtual Serial Host
- Virtual Serial/Mass Storage Device
- Virtual Serial/Mouse Device
然后相关的资料都在这个里面
http://www.fourwalledcubicle.com/files/LUFA/Doc/170418/html/index.html
我主要是翻译下这里面的一些信息
2018年6月13日 UPDATE:
恩,最近又重新看了下LUFA这个框架,原来arduino什么的很多是基于他这个框架写的,但是有人说arduino的功能不够强大,所以提供了一个方法是让arduino支持LUFA
https://github.com/Palatis/Arduino-Lufa/
可以去看下,但是LUFA提供的功能太多了。。我有点看不过来。。。