← index #7241Issue #7210
Related · medium · value 4.492
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

How do I read keyboard input without waiting for the user to press Enter?

closedby nayanaggopened 2021-05-03updated 2021-05-03

Hi,

I want to print character in i2c LCD display from keyboard through pi pico. But the issue is in input() character is not getting visible until ENTER button is pressed.

Kindly help...

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