I was thinking of using the keypad to control the players in Google Olympics "Google Doodle Champion Island Games" https://www.google.com/doodles/doodle-c ... es-july-24
That seems like a good fit because it uses very limited keystrokes.
Also, when I copy a script and edit it and save it to the MacroPad. What do I have to do to make it show up in the rotary script list? Do I restart, reboot, ...
I'm editing one of the scripts
I guess what I want to know is what do I change to, for example, assign arrow keys to the MacroPad keypad.
if the keypad is
123
456
789
How do I make 2 be up arrow
4 be left arrow, etc
I'll want an enter key
space key ...
I can use keys 10, 11, and 12 for that
What I'm trying now
Code: Select all
# MACROPAD Hotkeys example: Linux Ubuntu Firefox Google Olympics
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
app = { # REQUIRED dict, must be named 'app'
'name' : 'Google Olympics', # Application name
'macros' : [ # List of button macros...
# COLOR LABEL KEY SEQUENCE
# 1st row ----------
#(0x004000, 'Undo', [Keycode.COMMAND, 'z']),
(0x004000, 'Up', [Keycode.UP_ARROW]), #Up Arrow
#(0x303000, 'Pen', 'p'), # Path-drawing tool
# 2nd row ----------
(0x101010, 'Left', [Keycode.LEFT_ARROW]), # Left Arrow
#(0x400000, 'Reflect', 'o'), # Reflect selection
(0x303000, 'Right', [Keycode.RIGHT_ARROW]), # Right Arrow
# 3rd row ----------
#(0x101010, 'Direct', 'a'), # Direct (point) selection
(0x400000, 'Down', [Keycode.DOWN_ARROW]), # Down Arrow
#(0x303000, 'Oval', 'l'), # Draw ellipse
# 4th row ----------
(0x101010, 'Enter', [Keycode.ENTER]), # Enter
(0x400000, 'Space', [Keycode.SPACE]), # Space
#(0x303000, 'Text', 't'), # Type tool
# Encoder button ---
#(0x000000, '', [Keycode.COMMAND, Keycode.OPTION, 'S']) # Save for web
][[[[
}