← index #7241Issue #18647
Off-topic · high · value 2.623
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 · ISSUE

Advanced HID

closedby EinfachNurBaumopened 2026-01-06updated 2026-01-06
enhancement

Description

Hello everyone,
I've encountered the problem that in Python you can't see which data is used for constants like these from usb_hid. So I tried to test whether I could use my Raspberry Pi Pico as both a keyboard and a mouse USB device at the same time. To do this, I would have to create my own complete USB HID REPORT DESCRIPTION. It would be great if there were some kind of dictionary or something similar to print the constants with information about which byte is used for what, or if it were possible to configure this much more easily.

Code Size

No response

Implementation

I hope the MicroPython maintainers or community will implement this feature

Code of Conduct

Yes, I agree

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