Hey everyone, does anyone have an example for using the USB on the breakout board? like keyboard input
everything I've tried the h7 just doesn't do anything or gives me library errors.
Thanks
Hello @thedeadhand
Please check out this Tutorials:
- https://docs.arduino.cc/tutorials/portenta-h7/usb-host
- https://docs.arduino.cc/tutorials/portenta-h7/creating-gui-with-lvgl
Both of them use the USB Host capabilities
You can find the full sketches on those tutorials or at
Have a nice one!
I use USB-A on breakout board (for USB audio to PC, or as VCP UART):
my project using USB-A on breakout board
My one is a device: the difference: for Host, it has to enable the onboard power switch, to provide VBUS (a GPIO pin must be driven to do so).
The keyboard input - on my list to "try" (I need as well). The main issue: the VBUS "driver" has to be enabled (via GPIO pin from MCU, check schematics).
And: USB-A on breakout board uses the second USB device in MCU. This is a USB FS interface without an external PHY. The USB-C, as USB HS, is a different device in MCU, using an external PHY.
It works fine when the USB FS config is done accordingly.
(But I not convinced that the Arduino/mded LIB (and source code) do all properly - I saw some issues.
Using HAL drivers directly (not any Arduino sketch) - it works (as device). So, HW-wise all is fine.
Check out the Arduino/mbed "PluggableDevice".
As host device (for HID keyboard) - the VBUS switch must be enabled (a GPIO pin driven).
I want to "try" HID keyboard as well (I need).