QUERY · ISSUE
Add USB Host
enhancement
Description
Add USB Host, after all, you can use it on esp32p4.
Code Size
None
Implementation
I hope the MicroPython maintainers or community will implement this feature
Code of Conduct
Yes, I agree
CANDIDATE · PULL REQUEST
esp32: Enable support for machine.USBDevice.
port-esp32
Summary
Recently support for machine.USBDevice was kindly added to the ESP32 port. However it's not currently enabled in the runtime yet by default.
After discussing it (#15564) I followed the recipe of @TomFahey and the suggestions of @andrewleech to enable the USB runtime support support the same way it's been added e.g. to the RP2 port.
Testing
I tested it on an Arduino Nano ESP32 board by emulating a HID keyboard. In fact I had a whole class of students testing it and it worked beautifully.
Trade-offs and Alternatives
I'm not sure how this affects the binary size but I would expect a minimal increase.