← index #7241PR #891
Off-topic · high · value 3.537
QUERY · ISSUE

How do I read USB keyboard input in Pi Pico

openby nayanaggopened 2021-05-10updated 2025-10-03
port-rp2

Hi,

I've attached OTG to MicroUSB of pi pico to connect the USB keyboard and power the pico with VBUS 5V.

the issue is how can I read the input in Pi Pico using i2cLCD.

CANDIDATE · PULL REQUEST

usb/usb-device-keyboard : Add key release.

closedby amogha1234opened 2024-07-03updated 2024-07-03

Micropython 1.23 preview version is used with Raspberry pi pico w board.
Trying to send keys using usb-keyboard library. It was clicking the key, but not releasing it, similar to #873 . Resulting in continuous sending key.
Hence added release_all() function, which releases all keys. And it worked with Rpi pico w.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied