Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5033

SDK • Re: Setting LEDs on keyboard freezes up

$
0
0
Assuming you are talking about the Pico being a HID host then this is all I do.
Sendlights is a char and bit 0 is numlock, bit 1 is caps lock and bit 2 is scroll lock

Code:

tuh_hid_set_report(Device_address, Device_instance, 0, HID_REPORT_TYPE_OUTPUT, (void *)&sendlights,1);

Statistics: Posted by matherp — Wed Nov 13, 2024 4:11 pm



Viewing all articles
Browse latest Browse all 5033

Trending Articles