tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

USB-HID: Media/Consumer keys is not work on nrf52840

Open labrusca opened this issue 3 years ago • 4 comments
trafficstars

Seem Media/Consumer keys is not working on my M60 Keyboard(base on nrf52840),but the other keys is working well. system: Windows 11

labrusca avatar Sep 16 '22 14:09 labrusca

What has this to do with TinyGo? Are you programming it using TinyGo?

aykevl avatar Sep 19 '22 12:09 aykevl

What has this to do with TinyGo? Are you programming it using TinyGo?

I tried to write firmware for my mechanical keyboard using tinygo and it works fine so far except for the Media/Consumer keys, which don't work

labrusca avatar Sep 19 '22 12:09 labrusca

Yes, Media/Consumer keys are not currently supported.

https://github.com/tinygo-org/tinygo/blob/v0.25.0/src/machine/usb/hid/keyboard/keyboard.go#L233

It was in the source code we based it on, but we have not been able to implement it so far.

https://github.com/ardnew/tinygo/blob/6dcabd49800981e31c94d0ce5a571376c20b854b/src/machine/usb/dhw-hid_atsamd51.go#L126

sago35 avatar Sep 19 '22 12:09 sago35

@sago35 Oh ,I see,thanks.thanks. Maybe I'll drop those keys for now until it's implemented.

labrusca avatar Sep 19 '22 12:09 labrusca

+1 for implementing USB Consumer Control events (e.g. volume). It's the only thing currently stopping me from using TinyGo instead of CircuitPython on my USB input boards :)

Is something blocking this or is it just a case of priority/time?

neildavis avatar Feb 07 '23 15:02 neildavis

@labrusca @neildavis If you are interested, check out the following

#3436

sago35 avatar Feb 09 '23 10:02 sago35

This was completed as part of release v0.28 so now closing. Thanks!

deadprogram avatar Jun 14 '23 08:06 deadprogram