DeqingSun / ch55xduino

An Arduino-like programming API for the CH55X
GNU Lesser General Public License v2.1
439 stars 86 forks source link

Can I send media control keypresses via HID Keyboard? #59

Closed foadyousefi closed 2 years ago

foadyousefi commented 2 years ago

First, thanks for this awesome work.

I am able to compile and flash the examples. I was wondering how can I send media control commands/keypresses like volume up and down, next, pause and play. Where can I find a list of available key commands?

The price and minimal circuit requirements of this microcontroller make it ideal for most DIY projects, especially something like macro pads. Setting up a ch552 is way way easier than something like Atmega32u4.

DeqingSun commented 2 years ago

You do need to make some modifications to the example. Such as adding consumer control in ReportDesc. It will definitely work.

foadyousefi commented 2 years ago

Thanks for your response. Sorry for my dumb question, but can you please give me an example? It sounds a bit too complex for me.

DeqingSun commented 2 years ago

I will try to add that but it may take a few months until I have time to do so.

foadyousefi commented 2 years ago

@DeqingSun Any news here?

DeqingSun commented 2 years ago

@foadyousefi Try https://github.com/DeqingSun/ch55xduino/tree/48ab63be79ea0ff72d5b5bb04ace5cf76b6a588a/ch55xduino/ch55x/libraries/Generic_Examples/examples/05.USB/HidMediaKeyboard

foadyousefi commented 2 years ago

@DeqingSun Thanks, I will try and let you know the results.

foadyousefi commented 2 years ago

@DeqingSun I tried and it's working perfectly. Thank you.