Skip to content

Basic USB host support and keyboard workflow #8155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Jul 10, 2023

Connects up read, write and ctrl_transfer to TinyUSB. USB Host support is available on iMX RT and RP2040.

Fixes #6527 (imx) and fixes #5986 (rp2).

Connects up read, write and ctrl_transfer to TinyUSB. USB Host
support is available on iMX RT and RP2040.

Fixes micropython#6527 (imx) and fixes micropython#5986 (rp2).
@tannewt tannewt requested a review from jepler July 10, 2023 21:38
Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one or two things that look fishy. but overall it looks fine and it looks like low chances of adversely affecting anything non-usb-hosty

@tannewt tannewt requested a review from jepler July 10, 2023 23:08
Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@tannewt tannewt merged commit 7764cde into adafruit:main Jul 11, 2023
@SunboX
Copy link

SunboX commented Jul 28, 2023

Hi, that's great! Is there any example how to read a connected keyboard to an RP2040 board?

@tannewt
Copy link
Member Author

tannewt commented Jul 28, 2023

Keyboards are treated specially by CircuitPython. It should automatically read the keyboard and convert keypresses into a serial stream. Then, you can do input() like you normally would.

You can also detach CircuitPython from the keyboard and manage it yourself. However, I haven't tested that thoroughly yet.

@p3lim p3lim mentioned this pull request Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

USB HOST implementation on teensy 4.1 Support USB host (rp2)
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy