Keyboard leds #1016
Unanswered
abaddon201
asked this question in
Q&A
Keyboard leds
#1016
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm trying to control keyboard leds from my pico pi, configured as host. I've changed example of the host, to send reports to the keyboard, like that: in 'process_kbd_report' I added this code:
`
`
rpt2 - is a static uint8_t
This turns off and on leds, but in weird sequence, for example:
rpt2: result
1: CAPS
2: SCROLL
4: SCROLL+NUM
8: SCROLL
16: SCROLL
32: SCROLL+CAPS
64: NUM
128: NUM
0: CAPS
here is repeating of previous pattern, until 128
128: ALL OFF
and repeat again...
If I try to continue, it's continue for some time, and then turnes off all leds. Also, sometimes, I get panic in controller.
I can't understand what is going on. It's looks like provided data for the report is ignored, and it's report something from the memory...
Can someone advise me to the right direction?
Also I tried to use HID_OUTPUT macro, but it looks like it doesn't change behavior...
Beta Was this translation helpful? Give feedback.
All reactions