Skip to content

Help Need - Using media buttons #619

@SuperNinja-4965

Description

@SuperNinja-4965

I am not sure if this is the right place to be asking this but here goes!
I am using the tinyusb library with my Raspberry pi pico. i have a button connected to the pico. When the button is pressed a subroutine is called which uses tud_hid_keyboard_report to press a key on the keyboard.
All is working fine, I can do key combinations type sentances etc.

But what i cannot work out is how to use/ press media keys. I would like my button to say for example pause my music when i press it. (I am using the hid_composite example with modifications to use my button)
Is there a way to do this. I am new to TinyUSB and so i have probably missed something here.

When i search through the TinyUSB Repo i find HID_USAGE_CONSUMER_PLAY_PAUSE so i assume it is possible somehow.

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