Skip to content

Possible to read state of capslock key using KeyboardBT? #2331

Answered by earlephilhower
itrr0 asked this question in Q&A
Discussion options

You must be logged in to vote

Ooops, mybad. I completely zoned out and forgot we already support it. The onLED callback works in USB and in Bluetooth mode. See the KeyboardBT example. You can't "read" the state, but you get a callback whenever the state changes, so just keep track of it there. In the example it sets the Pico's LED on or off for CAPSLOCK.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@itrr0
Comment options

Answer selected by itrr0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants