Skip to content

Commit 675d60b

Browse files
authored
Merge pull request #1645 from isaacwellish/macropad-olympic-hotkeys
windows code and folder additions
2 parents c128be1 + 1ea7b04 commit 675d60b

10 files changed

Lines changed: 210 additions & 0 deletions

File tree

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# MACROPAD Olympic Hotkeys main page
2+
# pylint: disable=line-too-long
3+
4+
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
5+
6+
app = { # REQUIRED dict, must be named 'app'
7+
'name' : 'Olympics Home', # Application name
8+
'macros' : [ # List of button macros...
9+
# COLOR LABEL KEY SEQUENCE
10+
# 1st row ----------
11+
(0x004000, '< Tab', [Keycode.CONTROL, Keycode.SHIFT, Keycode.TAB]),
12+
(0x004000, 'Tab >', [Keycode.CONTROL, Keycode.TAB]),
13+
(0x400000, 'Up', [Keycode.SHIFT, ' ']), # Scroll up
14+
# 2nd row ----------
15+
# Full schedule in new tab
16+
(0x3F3F3F, 'Sched', [Keycode.CONTROL, 't', -Keycode.CONTROL,
17+
'https://olympics.com/tokyo-2020/olympic-games/en/results/all-sports/olympic-schedule.htm\n']),
18+
# Medal standings in new tab
19+
(0x404000 , 'Medals', [Keycode.CONTROL, 't', -Keycode.CONTROL,
20+
'https://olympics.com/tokyo-2020/olympic-games/en/results/all-sports/medal-standings.htm\n']),
21+
(0x400000, 'Down', ' '), # Scroll down
22+
# 3rd row ----------
23+
# Peacock streaming service Olympics home in new tab
24+
(0x000040, 'PC', [Keycode.CONTROL, 't', -Keycode.CONTROL,
25+
'https://www.peacocktv.com/watch/2020-tokyo-olympics\n']),
26+
# Full schedule in new tab
27+
(0x000040, 'NBC', [Keycode.CONTROL, 't', -Keycode.CONTROL,
28+
'https://www.usanetwork.com/live?brand=cnbc&callsign=nbc\n']),
29+
# Medal standings in new tab
30+
(0x000040 , 'YT', [Keycode.CONTROL, 't', -Keycode.CONTROL,
31+
'https://www.youtube.com/channel/UCTl3QQTvqHFjurroKxexy2Q\n']),
32+
# 4th row ----------
33+
# NBC in new tab
34+
(0x000040, 'CNBC', [Keycode.CONTROL, 't', -Keycode.CONTROL,
35+
'https://www.usanetwork.com/live?brand=nbc&callsign=cnbc\n']),
36+
# USA in new tab
37+
(0x000040, 'USA', [Keycode.CONTROL, 't', -Keycode.CONTROL,
38+
'https://www.usanetwork.com/live?brand=usa&callsign=usa_east\n']),
39+
# NBCSN in new tab
40+
(0x000040, 'NBCSN', [Keycode.CONTROL, 't', -Keycode.CONTROL,
41+
'https://www.usanetwork.com/live?brand=nbc-sports&callsign=nbcsn\n']),
42+
# Encoder button ---
43+
(0x000000, '', [Keycode.CONTROL, 'w']) # Close window/tab
44+
]
45+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# MACROPAD Olympic Hotkeys sports page 1
2+
# pylint: disable=line-too-long
3+
4+
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
5+
6+
app = { # REQUIRED dict, must be named 'app'
7+
'name' : 'Sports 1', # Application name
8+
'macros' : [ # List of button macros...
9+
# COLOR LABEL KEY SEQUENCE
10+
# 1st row ----------
11+
# 3x3 basketball schedule and results in new tab
12+
(0x000040, '3x3Bask', [Keycode.CONTROL, 't', -Keycode.CONTROL,
13+
'https://olympics.com/tokyo-2020/olympic-games/en/results/3x3-basketball/olympic-schedule-and-results.htm\n']),
14+
(0x3F3F3F, 'Arch', [Keycode.CONTROL, 't', -Keycode.CONTROL,
15+
'https://olympics.com/tokyo-2020/olympic-games/en/results/archery/olympic-schedule-and-results.htm\n']),
16+
(0x000040 , 'ArtGym', [Keycode.CONTROL, 't', -Keycode.CONTROL,
17+
'https://olympics.com/tokyo-2020/olympic-games/en/results/artistic-gymnastics/olympic-schedule-and-results.htm\n']),
18+
# 2nd row ----------
19+
(0x3F3F3F, 'ArtSwim', [Keycode.CONTROL, 't', -Keycode.CONTROL,
20+
'https://olympics.com/tokyo-2020/olympic-games/en/results/artistic-swimming/olympic-schedule-and-results.htm\n']),
21+
(0x404000, 'Athl', [Keycode.CONTROL, 't', -Keycode.CONTROL,
22+
'https://olympics.com/tokyo-2020/olympic-games/en/results/athletics/olympic-schedule-and-results.htm\n']),
23+
(0x3F3F3F , 'Bdmntn', [Keycode.CONTROL, 't', -Keycode.CONTROL,
24+
'https://olympics.com/tokyo-2020/olympic-games/en/results/badminton/olympic-schedule-and-results.htm\n']),
25+
# 3rd row ----------
26+
(0x404000, 'BB/SB', [Keycode.CONTROL, 't', -Keycode.CONTROL,
27+
'https://olympics.com/tokyo-2020/olympic-games/en/results/baseball-softball/olympic-schedule-and-results.htm\n']),
28+
(0x3F3F3F, 'BaskBl', [Keycode.CONTROL, 't', -Keycode.CONTROL,
29+
'https://olympics.com/tokyo-2020/olympic-games/en/results/basketball/olympic-schedule-and-results.htm\n']),
30+
(0x004000 , 'BVoll', [Keycode.CONTROL, 't', -Keycode.CONTROL,
31+
'https://olympics.com/tokyo-2020/olympic-games/en/results/beach-volleyball/olympic-schedule-and-results.htm\n']),
32+
# 4th row ----------
33+
(0x3F3F3F, 'Boxing', [Keycode.CONTROL, 't', -Keycode.CONTROL,
34+
'https://olympics.com/tokyo-2020/olympic-games/en/results/boxing/olympic-schedule-and-results.htm\n']),
35+
(0x004000, 'CanoeSl', [Keycode.CONTROL, 't', -Keycode.CONTROL,
36+
'https://olympics.com/tokyo-2020/olympic-games/en/results/canoe-slalom/olympic-schedule-and-results.htm\n']),
37+
(0x3F3F3F, 'CanoeSp', [Keycode.CONTROL, 't', -Keycode.CONTROL,
38+
'https://olympics.com/tokyo-2020/olympic-games/en/results/canoe-sprint/olympic-schedule-and-results.htm \n']),
39+
# Encoder button ---
40+
(0x000000, '', [Keycode.CONTROL, 'w']) # Close window/tab
41+
]
42+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# MACROPAD Olympic Hotkeys sports page 2
2+
# pylint: disable=line-too-long
3+
4+
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
5+
6+
app = { # REQUIRED dict, must be named 'app'
7+
'name' : 'Sports 2', # Application name
8+
'macros' : [ # List of button macros...
9+
# COLOR LABEL KEY SEQUENCE
10+
# 1st row ----------
11+
(0x3F3F3F, 'BMX Fr', [Keycode.CONTROL, 't', -Keycode.CONTROL,
12+
'https://olympics.com/tokyo-2020/olympic-games/en/results/cycling-bmx-freestyle/olympic-schedule-and-results.htm\n']),
13+
(0x400000, 'BMX Ra', [Keycode.CONTROL, 't', -Keycode.CONTROL,
14+
'https://olympics.com/tokyo-2020/olympic-games/en/results/cycling-bmx-racing/olympic-schedule-and-results.htm\n']),
15+
(0x3F3F3F , 'Mtn Bk', [Keycode.CONTROL, 't', -Keycode.CONTROL,
16+
'https://olympics.com/tokyo-2020/olympic-games/en/results/cycling-mountain-bike/olympic-schedule-and-results.htm\n']),
17+
# 2nd row ----------
18+
(0x400000, 'Cyc Rd', [Keycode.CONTROL, 't', -Keycode.CONTROL,
19+
'https://olympics.com/tokyo-2020/olympic-games/en/results/cycling-road/olympic-schedule-and-results.htm\n']),
20+
(0x3F3F3F, 'Cyc Tr', [Keycode.CONTROL, 't', -Keycode.CONTROL,
21+
'https://olympics.com/tokyo-2020/olympic-games/en/results/cycling-track/olympic-schedule-and-results.htm\n']),
22+
(0x000040 , 'Dive', [Keycode.CONTROL, 't', -Keycode.CONTROL,
23+
'https://olympics.com/tokyo-2020/olympic-games/en/results/diving/olympic-schedule-and-results.htm\n']),
24+
# 3rd row ----------
25+
(0x3F3F3F, 'Equest', [Keycode.CONTROL, 't', -Keycode.CONTROL,
26+
'https://olympics.com/tokyo-2020/olympic-games/en/results/equestrian/olympic-schedule-and-results.htm\n']),
27+
(0x000040, 'Fence', [Keycode.CONTROL, 't', -Keycode.CONTROL,
28+
'https://olympics.com/tokyo-2020/olympic-games/en/results/fencing/olympic-schedule-and-results.htm\n']),
29+
(0x3F3F3F , 'Fball', [Keycode.CONTROL, 't', -Keycode.CONTROL,
30+
'https://olympics.com/tokyo-2020/olympic-games/en/results/football/olympic-schedule-and-results.htm\n']),
31+
# 4th row ----------
32+
(0x404000, 'Golf', [Keycode.CONTROL, 't', -Keycode.CONTROL,
33+
'https://olympics.com/tokyo-2020/olympic-games/en/results/golf/olympic-schedule-and-results.htm\n']),
34+
(0x3F3F3F, 'Hball', [Keycode.CONTROL, 't', -Keycode.CONTROL,
35+
'https://olympics.com/tokyo-2020/olympic-games/en/results/handball/olympic-schedule-and-results.htm\n']),
36+
(0x404000, 'Hockey', [Keycode.CONTROL, 't', -Keycode.CONTROL,
37+
'https://olympics.com/tokyo-2020/olympic-games/en/results/hockey/olympic-schedule-and-results.htm \n']),
38+
# Encoder button ---
39+
(0x000000, '', [Keycode.CONTROL, 'w']) # Close window/tab
40+
]
41+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# MACROPAD Olympic Hotkeys sports page 3
2+
# pylint: disable=line-too-long
3+
4+
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
5+
6+
app = { # REQUIRED dict, must be named 'app'
7+
'name' : 'Sports 3', # Application name
8+
'macros' : [ # List of button macros...
9+
# COLOR LABEL KEY SEQUENCE
10+
# 1st row ----------
11+
(0x004000, 'Judo', [Keycode.CONTROL, 't', -Keycode.CONTROL,
12+
'https://olympics.com/tokyo-2020/olympic-games/en/results/judo/olympic-schedule-and-results.htm\n']),
13+
(0x3F3F3F, 'Karate', [Keycode.CONTROL, 't', -Keycode.CONTROL,
14+
'https://olympics.com/tokyo-2020/olympic-games/en/results/karate/olympic-schedule-and-results.htm\n']),
15+
(0x004000 , 'MSwim', [Keycode.CONTROL, 't', -Keycode.CONTROL,
16+
'https://olympics.com/tokyo-2020/olympic-games/en/results/marathon-swimming/olympic-schedule-and-results.htm\n']),
17+
# 2nd row ----------
18+
(0x3F3F3F, 'Pentath', [Keycode.CONTROL, 't', -Keycode.CONTROL,
19+
'https://olympics.com/tokyo-2020/olympic-games/en/results/modern-pentathlon/olympic-schedule-and-results.htm\n']),
20+
(0x400000, 'RGym', [Keycode.CONTROL, 't', -Keycode.CONTROL,
21+
'https://olympics.com/tokyo-2020/olympic-games/en/results/rhythmic-gymnastics/olympic-schedule-and-results.htm\n']),
22+
(0x3F3F3F , 'Row', [Keycode.CONTROL, 't', -Keycode.CONTROL,
23+
'https://olympics.com/tokyo-2020/olympic-games/en/results/rowing/olympic-schedule-and-results.htm\n']),
24+
# 3rd row ----------
25+
(0x400000, 'Rugby', [Keycode.CONTROL, 't', -Keycode.CONTROL,
26+
'https://olympics.com/tokyo-2020/olympic-games/en/results/rugby-sevens/olympic-schedule-and-results.htm\n']),
27+
(0x3F3F3F, 'Sail', [Keycode.CONTROL, 't', -Keycode.CONTROL,
28+
'https://olympics.com/tokyo-2020/olympic-games/en/results/sailing/olympic-schedule-and-results.htm\n']),
29+
(0x000040, 'Shoot', [Keycode.CONTROL, 't', -Keycode.CONTROL,
30+
'https://olympics.com/tokyo-2020/olympic-games/en/results/shooting/olympic-schedule-and-results.htm\n']),
31+
# 4th row ----------
32+
(0x3F3F3F, 'Skate', [Keycode.CONTROL, 't', -Keycode.CONTROL,
33+
'https://olympics.com/tokyo-2020/olympic-games/en/results/skateboarding/olympic-schedule-and-results.htm\n']),
34+
(0x000040, 'Climb', [Keycode.CONTROL, 't', -Keycode.CONTROL,
35+
'https://olympics.com/tokyo-2020/olympic-games/en/results/sport-climbing/olympic-schedule-and-results.htm\n']),
36+
(0x3F3F3F, 'Surf', [Keycode.CONTROL, 't', -Keycode.CONTROL,
37+
'https://olympics.com/tokyo-2020/olympic-games/en/results/surfing/olympic-schedule-and-results.htm \n']),
38+
# Encoder button ---
39+
(0x000000, '', [Keycode.CONTROL, 'w']) # Close window/tab
40+
]
41+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# MACROPAD Olympic Hotkeys sports page 4
2+
# pylint: disable=line-too-long
3+
4+
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
5+
6+
app = { # REQUIRED dict, must be named 'app'
7+
'name' : 'Sports 4', # Application name
8+
'macros' : [ # List of button macros...
9+
# COLOR LABEL KEY SEQUENCE
10+
# 1st row ----------
11+
(0x3F3F3F, 'Swim', [Keycode.CONTROL, 't', -Keycode.CONTROL,
12+
'https://olympics.com/tokyo-2020/olympic-games/en/results/swimming/olympic-schedule-and-results.htm\n']),
13+
(0x404000, 'TTennis', [Keycode.CONTROL, 't', -Keycode.CONTROL,
14+
'https://olympics.com/tokyo-2020/olympic-games/en/results/table-tennis/olympic-schedule-and-results.htm\n']),
15+
(0x3F3F3F, 'Tkwndo', [Keycode.CONTROL, 't', -Keycode.CONTROL,
16+
'https://olympics.com/tokyo-2020/olympic-games/en/results/Taekwondo/olympic-schedule-and-results.htm\n']),
17+
# 2nd row ----------
18+
(0x404000, 'Tennis', [Keycode.CONTROL, 't', -Keycode.CONTROL,
19+
'https://olympics.com/tokyo-2020/olympic-games/en/results/tennis/olympic-schedule-and-results.htm\n']),
20+
(0x3F3F3F, 'TGym', [Keycode.CONTROL, 't', -Keycode.CONTROL,
21+
'https://olympics.com/tokyo-2020/olympic-games/en/results/trampoline-gymnastics/olympic-schedule-and-results.htm\n']),
22+
(0x004000 , 'Trithln', [Keycode.CONTROL, 't', -Keycode.CONTROL,
23+
'https://olympics.com/tokyo-2020/olympic-games/en/results/triathlon/olympic-schedule-and-results.htm\n']),
24+
# 3rd row ----------
25+
(0x3F3F3F, 'VBall', [Keycode.CONTROL, 't', -Keycode.CONTROL,
26+
'https://olympics.com/tokyo-2020/olympic-games/en/results/volleyball/olympic-schedule-and-results.htm\n']),
27+
(0x004000, 'WPolo', [Keycode.CONTROL, 't', -Keycode.CONTROL,
28+
'https://olympics.com/tokyo-2020/olympic-games/en/results/water-polo/olympic-schedule-and-results.htm\n']),
29+
(0x3F3F3F , 'Wlift', [Keycode.CONTROL, 't', -Keycode.CONTROL,
30+
'https://olympics.com/tokyo-2020/olympic-games/en/results/weightlifting/olympic-schedule-and-results.htm\n']),
31+
# 4th row ----------
32+
(0x400000, 'Wrestl', [Keycode.CONTROL, 't', -Keycode.CONTROL,
33+
'https://olympics.com/tokyo-2020/olympic-games/en/results/wrestling/olympic-schedule-and-results.htm\n']),
34+
(0x3F3F3F, '', [Keycode.CONTROL, 't', -Keycode.CONTROL,
35+
'']),
36+
(0x400000, '', [Keycode.CONTROL, 't', -Keycode.CONTROL,
37+
'']),
38+
# Encoder button ---
39+
(0x000000, '', [Keycode.CONTROL, 'w']) # Close window/tab
40+
]
41+
}

0 commit comments

Comments
 (0)