Skip to content

Pico as usb host #224

Answered by earlephilhower
emojogurt asked this question in Q&A
Jun 25, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

It may be possible to do this, but you'll need to not use Serial as you stated and also add a define DISABLE_USB_SERIAL or hack out

#ifndef DISABLE_USB_SERIAL
// Enable serial port for reset/upload always
Serial.begin(115200);
#endif

You'd then have to handle all the USB setup yourself, as there is no host mode code in the core yet.

Unless you need the Arduino libraries, though, I'd probably suggest just using the SDK for host mode apps at this point.

Of course, a PR adding support for USB host mode would definitely be welcome! :)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@emojogurt
Comment options

@emojogurt
Comment options

@earlephilhower
Comment options

Answer selected by emojogurt
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants