Closed AbdElhalim12 closed 1 year ago
You cannot send ConsumerControl
codes via Keyboard()
. You need to create a ConsumerControl
object and use that.
See https://github.com/adafruit/Adafruit_CircuitPython_HID/blob/main/examples/hid_consumer_control_brightness.py for an example. There are also many examples in https://learn.adafruit.com.
hey, thanks for the solution. one more question, when to use this line then?
The MacroPad library interprets the items in that list as various different things. It doesn't have anything to do with ConsumerControl per se. See https://learn.adafruit.com/macropad-hotkeys?view=all#media-control-consumer-control-codes-3104573. ConsumerControl codes and Keyboard codes are both just integers.
I'm trying to use consumer controls with pushbuttons but I'm not getting anything.
I've tried the pushbutton with macros and it worked.