How to add the usb_host module on Raspberry Pi Pico 2 W? #18888
Replies: 3 comments 4 replies
-
|
Are you the victim of some AI hallucination or something? Yes, the RP2350 can act as USB host, but it's not implemented in Micropython. And even in the C SDK it's only available on the actual USB port, not on any GPIO pins. Although a PIO USB implementation exists (https://github.com/sekigon-gonnoc/Pico-PIO-USB), it's not available through Micropython. |
Beta Was this translation helpful? Give feedback.
-
|
you might be thinking of Circuitpython which does have usb host for RP2350 https://learn.adafruit.com/using-a-keyboard-with-usb-host/circuitpython |
Beta Was this translation helpful? Give feedback.
-
|
@andrewleech has been working on USB Host for MicroPython, I'm sure he could do with an additional tester! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to add the
usb_hostmodule on the Raspberry Pi Pico 2 W (RP2350)?The Pico 2 is supposed to have USB host support in hardware, but when I try to import the module I get an error:
Presumably it is possible, since other RP2350-based boards are listed under the "Available on these boards" section. Is there a setting somewhere, and will I need to build the
.uf2file from source?To make sure I'm not after the wrong thing, I am trying to make a Raspberry Pi Pico 2 W with a USB port wired to two GPIO pins, that can read a USB keyboard input and make a web request. I assume this is the right module to use here?
Beta Was this translation helpful? Give feedback.
All reactions