Add numeric keypad (universal)

This commit is contained in:
Emma Humphries 2021-07-28 21:30:07 -07:00
parent 2943080ce2
commit a6895134da

View file

@ -0,0 +1,28 @@
# 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])
]
}