Skip to content

💡[FEATURE] host_hid_to_device_cdc example - controlling keyboard LEDs - working sample code #63

@samartzidis

Description

@samartzidis

Hi,

In the host_hid_to_device_cdc example, you mention in a comment:
// TODO control LED on keyboard of host stack

In the above example, I tried playing with the keyboard Caps Lock LED using the tuh_hid_set_report function like so:

static uint8_t leds = KEYBOARD_LED_CAPSLOCK; //  = 2
tuh_hid_set_report(dev_addr, instance, 0, HID_REPORT_TYPE_OUTPUT, &leds, sizeof(leds));

but failed to get any results.

Is it because I am not doing things the right way or is it something that the Pico-PIO-USB library does not yet support?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions