You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to send keycodes from the Gemma M0 to a Linux host. I wanted to configure three buttons to send F13, F14, and F15. While this works just fine:
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
kbd = Keyboard(usb_hid.devices)
kbd.press(Keycode.A)
kbd.release(Keycode.A)
This fails to send anything at all:
kbd.press(Keycode.F13)
kbd.release(Keycode.F13)
I notice that when using evtest to try to debug the problem, I see this report when connecting to the keyboard endpoint:
It appears that the HID driver is explicitly declaring that it only supports the keycode listed in the above output. Is there any way to get CP to send arbitrary HID keycodes?
The text was updated successfully, but these errors were encountered:
I'm trying to send keycodes from the Gemma M0 to a Linux host. I wanted to configure three buttons to send F13, F14, and F15. While this works just fine:
This fails to send anything at all:
I notice that when using
evtest
to try to debug the problem, I see this report when connecting to the keyboard endpoint:It appears that the HID driver is explicitly declaring that it only supports the keycode listed in the above output. Is there any way to get CP to send arbitrary HID keycodes?
The text was updated successfully, but these errors were encountered: