28 lines
922 B
Python
28 lines
922 B
Python
# MACROPAD Hotkeys example: Safari web browser for Mac
|
|
|
|
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
|
|
|
|
app = { # REQUIRED dict, must be named 'app'
|
|
'name' : 'Numpad', # Application name
|
|
'macros' : [ # List of button macros...
|
|
# COLOR LABEL KEY SEQUENCE
|
|
# 1st row ----------
|
|
(0x004000, '1', ['1']),
|
|
(0x004000, '2', ['2']),
|
|
(0x400000, '3', ['3']),
|
|
# 2nd row ----------
|
|
(0x202000, '4', ['4']),
|
|
(0x202000, '5', ['5']),
|
|
(0x400000, '6', ['6']),
|
|
# 3rd row ----------
|
|
(0x000040, '7', ['7']),
|
|
(0x000040, '8', ['8']),
|
|
(0x000040, '9', ['9']),
|
|
# 4th row ----------
|
|
(0x000000, '*', ['*']),
|
|
(0x800000, '0', ['0']),
|
|
(0x101010, '#', ['#']),
|
|
# Encoder button ---
|
|
(0x000000, '', [Keycode.BACKSPACE])
|
|
]
|
|
}
|