pc-sports-3.py
1 # SPDX-FileCopyrightText: 2021 Isaac Wellish for Adafruit Industries 2 # 3 # SPDX-License-Identifier: MIT 4 5 # MACROPAD Olympic Hotkeys sports page 3 6 # pylint: disable=line-too-long 7 8 from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values 9 10 app = { # REQUIRED dict, must be named 'app' 11 'name' : 'Sports 3', # Application name 12 'macros' : [ # List of button macros... 13 # COLOR LABEL KEY SEQUENCE 14 # 1st row ---------- 15 (0x004000, 'Judo', [Keycode.CONTROL, 't', -Keycode.CONTROL, 16 'https://olympics.com/tokyo-2020/olympic-games/en/results/judo/olympic-schedule-and-results.htm\n']), 17 (0x3F3F3F, 'Karate', [Keycode.CONTROL, 't', -Keycode.CONTROL, 18 'https://olympics.com/tokyo-2020/olympic-games/en/results/karate/olympic-schedule-and-results.htm\n']), 19 (0x004000 , 'MSwim', [Keycode.CONTROL, 't', -Keycode.CONTROL, 20 'https://olympics.com/tokyo-2020/olympic-games/en/results/marathon-swimming/olympic-schedule-and-results.htm\n']), 21 # 2nd row ---------- 22 (0x3F3F3F, 'Pentath', [Keycode.CONTROL, 't', -Keycode.CONTROL, 23 'https://olympics.com/tokyo-2020/olympic-games/en/results/modern-pentathlon/olympic-schedule-and-results.htm\n']), 24 (0x400000, 'RGym', [Keycode.CONTROL, 't', -Keycode.CONTROL, 25 'https://olympics.com/tokyo-2020/olympic-games/en/results/rhythmic-gymnastics/olympic-schedule-and-results.htm\n']), 26 (0x3F3F3F , 'Row', [Keycode.CONTROL, 't', -Keycode.CONTROL, 27 'https://olympics.com/tokyo-2020/olympic-games/en/results/rowing/olympic-schedule-and-results.htm\n']), 28 # 3rd row ---------- 29 (0x400000, 'Rugby', [Keycode.CONTROL, 't', -Keycode.CONTROL, 30 'https://olympics.com/tokyo-2020/olympic-games/en/results/rugby-sevens/olympic-schedule-and-results.htm\n']), 31 (0x3F3F3F, 'Sail', [Keycode.CONTROL, 't', -Keycode.CONTROL, 32 'https://olympics.com/tokyo-2020/olympic-games/en/results/sailing/olympic-schedule-and-results.htm\n']), 33 (0x000040, 'Shoot', [Keycode.CONTROL, 't', -Keycode.CONTROL, 34 'https://olympics.com/tokyo-2020/olympic-games/en/results/shooting/olympic-schedule-and-results.htm\n']), 35 # 4th row ---------- 36 (0x3F3F3F, 'Skate', [Keycode.CONTROL, 't', -Keycode.CONTROL, 37 'https://olympics.com/tokyo-2020/olympic-games/en/results/skateboarding/olympic-schedule-and-results.htm\n']), 38 (0x000040, 'Climb', [Keycode.CONTROL, 't', -Keycode.CONTROL, 39 'https://olympics.com/tokyo-2020/olympic-games/en/results/sport-climbing/olympic-schedule-and-results.htm\n']), 40 (0x3F3F3F, 'Surf', [Keycode.CONTROL, 't', -Keycode.CONTROL, 41 'https://olympics.com/tokyo-2020/olympic-games/en/results/surfing/olympic-schedule-and-results.htm \n']), 42 # Encoder button --- 43 (0x000000, '', [Keycode.CONTROL, 'w']) # Close window/tab 44 ] 45 }