# MacroPad Summer Olympics Hotkeys

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/103/639/medium800/circuitpython_guide_edit_1st_pic.png?1627393490)

The sheer **number** of **Olympic**  **events** is **staggering** (46!). How do you keep track of them all? The **MacroPad** is the **perfect organizer for checking in on each sport** and scrolling through the different Olympics channels.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/103/642/medium800/circuitpython_image.png?1627394429 source: https://en.wikipedia.org/wiki/Olympic_Games)

https://www.youtube.com/watch?v=d4WfSLs3T88

In this project you'll be able to (from a browser):

- View **live and past** Olympic events from **6 different channels/sources**
- Check the schedules and results of **[all 46 Olympic events](https://olympics.com/tokyo-2020/olympic-games/en/results/all-sports/olympic-schedule.htm)** (individually and at a glance)
- View the [medal count by country](https://olympics.com/tokyo-2020/olympic-games/en/results/all-sports/medal-standings.htm) **in real time**
- Switch between tabs of all the channels, results, schedules etc.
- Navigate up and down pages
- Close tabs

All with a couple of clickity clackity keyboard clicks on an Adafruit MacroPad!

![](https://cdn-learn.adafruit.com/assets/assets/000/103/641/medium800thumb/circuitpython_runthrough.jpg?1627393962)

## What's a MacroPad?

It's a speedy little microcontroller with lots of GPIO pins and a 64 times more RAM than the Apollo Guidance Computer. The MacroPad can be powered by either CircuitPython or Arduino - complete with 12 buttons, an OLED display, a speaker, and a rotary encoder. [Read about it here if you'd like more details](https://learn.adafruit.com/adafruit-macropad-rp2040).

For the scope of this guide, we're going to focus on the application of the MacroPad as a [hotkeys](https://en.wikipedia.org/wiki/Keyboard_shortcut)&nbsp;shortcut to make your Olympic viewing experience a 10 out of 10. This project is based on a tutorial called [MACROPAD Hotkeys](https://learn.adafruit.com/macropad-hotkeys/custom-configurations) which shows you how to turn your MacroPad into a keyboard shortcut device for your computer. **Please read through that guide before continuing here.**

[Prerequisite guide: MACROPAD Hotkeys](https://learn.adafruit.com/macropad-hotkeys/overview)
![](https://cdn-learn.adafruit.com/assets/assets/000/103/643/medium800/circuitpython_Screen_Shot_2021-07-27_at_10.19.50_AM.png?1627395942)

## Parts

You can buy a kit with all the parts with Kailh Red keys and clear keycaps or build your own custom configuration:

### Adafruit MacroPad RP2040 Starter Kit - 3x4 Keys + Encoder + OLED

[Adafruit MacroPad RP2040 Starter Kit - 3x4 Keys + Encoder + OLED](https://www.adafruit.com/product/5128)
Strap yourself in, we're launching in T-minus 10 seconds...Destination? A new Class M planet called MACROPAD! M here stands for Microcontroller because this 3x4 keyboard controller features the newest technology from the Raspberry Pi sector: say hello to the RP2040. It's a speedy...

Out of Stock
[Buy Now](https://www.adafruit.com/product/5128)
[Related Guides to the Product](https://learn.adafruit.com/products/5128/guides)
![Video of a hand playing with a rainbow-glowing keypad.](https://cdn-shop.adafruit.com/product-videos/640x480/5128-08.jpg)

- or -

### Adafruit MACROPAD RP2040 Bare Bones - 3x4 Keys + Encoder + OLED

[Adafruit MACROPAD RP2040 Bare Bones - 3x4 Keys + Encoder + OLED](https://www.adafruit.com/product/5100)
Strap yourself in, we're launching in T-minus 10 seconds...Destination? A new Class M planet called MACROPAD! M here, stands for Microcontroller because this 3x4 keyboard controller features the newest technology from the Raspberry Pi sector: say hello to the RP2040. It's a speedy...
In Stock
[Buy Now](https://www.adafruit.com/product/5100)
[Related Guides to the Product](https://learn.adafruit.com/products/5100/guides)
![Angled shot of MacroPad](https://cdn-shop.adafruit.com/640x480/5100-00.jpg)

### Adafruit MacroPad RP2040 Enclosure + Hardware Add-on Pack

[Adafruit MacroPad RP2040 Enclosure + Hardware Add-on Pack](https://www.adafruit.com/product/5103)
Dress up your Adafruit Macropad with PaintYourDragon's fabulous decorative silkscreen enclosure and hardware kit. You get the two custom PCBs that are cut to act as a protective bottom plate and and a mechanically-stabilizing keyboard plate.

Use the included M3 screws to attach the...

In Stock
[Buy Now](https://www.adafruit.com/product/5103)
[Related Guides to the Product](https://learn.adafruit.com/products/5103/guides)
![Top view of MacroPad add on pack](https://cdn-shop.adafruit.com/640x480/5103-06.jpg)

### Kailh Mechanical Key Switches - 10 packs - Cherry MX Compatible

[Kailh Mechanical Key Switches - 10 packs - Cherry MX Compatible](https://www.adafruit.com/product/4996)
For crafting your very own custom keyboard, these **&nbsp;Kailh mechanical key switches** &nbsp;are deeee-luxe!

Come&nbsp;in a pack of 10 switches, plenty to make a small keyboard, or grab a few packs to build a full keyboard.

- Use these with our&nbsp;<a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/4996)
[Related Guides to the Product](https://learn.adafruit.com/products/4996/guides)
![Top down view of four piles of Kailh key switches in Red, Black, Brown, and Black variations.](https://cdn-shop.adafruit.com/640x480/4996-00.jpg)

### Clear Keycaps for MX Compatible Switches - 12-pack

[Clear Keycaps for MX Compatible Switches - 12-pack](https://www.adafruit.com/product/5068)
Here is a **12&nbsp;pack** of Clear DSA keycaps for your next mechanical keyboard or&nbsp;[NeoKey](https://www.adafruit.com/?q=neokey&sort=BestMatch)&nbsp;project. Snap 'em onto any&nbsp; **Cherry MX or compatible switch&nbsp;** to turn your&nbsp;<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/5068)
[Related Guides to the Product](https://learn.adafruit.com/products/5068/guides)
![Group shot of Clear DSA Keycaps for MX Compatible Switches - 12 pack](https://cdn-shop.adafruit.com/640x480/5068-04.jpg)

### Translucent Keycaps for MX Compatible Switches - 10 pack

[Translucent Keycaps for MX Compatible Switches - 10 pack](https://www.adafruit.com/product/4956)
Get ready&nbsp;to clacky to your heart's content. Here is a 10 pack of translucent keycaps for your next mechanical keyboard or [NeoKey](https://www.adafruit.com/?q=neokey&sort=BestMatch) project. Snap 'em onto a&nbsp; **Cherry MX or compatible...**

In Stock
[Buy Now](https://www.adafruit.com/product/4956)
[Related Guides to the Product](https://learn.adafruit.com/products/4956/guides)
![Angled shot of 10 translucent key caps.](https://cdn-shop.adafruit.com/640x480/4956-00.jpg)

# MacroPad Summer Olympics Hotkeys

## Project Code

As stated earlier, this project is based off the [MACROPAD Hotkeys guide](https://learn.adafruit.com/macropad-hotkeys/custom-configurations). Once you have read through that guide you are ready to add the files from this guide.

https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/main/Macropad_Olympic_Hotkeys

Download the entire project code from above and save the specified files in your **macros** folder on your **CIRCUITPY** drive.&nbsp;

Make sure to delete any other unwanted files in this folder. The&nbsp; **macros** &nbsp;folder on your&nbsp; **CIRCUITPY** drive should look like this.

![circuitpython_Screen_Shot_2021-07-27_at_10.31.23_AM.png](https://cdn-learn.adafruit.com/assets/assets/000/103/644/medium640/circuitpython_Screen_Shot_2021-07-27_at_10.31.23_AM.png?1627486243)

## Mac or Windows?

There are two folders of macros code in this project. One for Mac users and one for Windows users.

When you download the project bundle&nbsp; **drag only the files for your operating system** &nbsp;into&nbsp;`macros`&nbsp;folder on your CIRCUITPY drive.

![circuitpython_Screen_Shot_2021-07-28_at_11.32.45_AM.png](https://cdn-learn.adafruit.com/assets/assets/000/103/661/medium640/circuitpython_Screen_Shot_2021-07-28_at_11.32.45_AM.png?1627486384)

# MacroPad Summer Olympics Hotkeys

## Using the Olympic Hotkeys

Once you have the code running, it's time to take it on the field and put it into action!

![](https://cdn-learn.adafruit.com/assets/assets/000/103/648/medium800thumb/circuitpython_runthrough.jpg?1627399234)

## Browsers

You are welcome to use any browser you would like with the project. Make sure you have one open before pressing keys.

![](https://cdn-learn.adafruit.com/assets/assets/000/103/649/medium800/circuitpython_guide_edit_1st_pic.png?1627399321)

## Commands

- Tap on any key that's associated with a website (Sched, Medals, NBC, etc.), and that **site will open up in a new tab on your browser**
- Close any tab by **pressing down on the rotary encoder**
- Navigate between tabs by tapping the `Tab` keys
- Navigate up and down web pages by tapping the `up` and `down` keys.
- **Scroll through the different macros pages** to view all different sports and go back home by **turning the rotary encoder**

## Accessing the various channels
There are 6 websites/channels with various live and past Olympic events in this project:

- [NBC (Olympics "primetime" channel - Live only)](https://www.usanetwork.com/live?brand=nbc&callsign=nbc)
- [CNBC (Live only)](https://www.usanetwork.com/live?brand=nbc&callsign=cnbc)
- [NBCSN (NBC sports - Live only)](https://www.usanetwork.com/live?brand=nbc-sports&callsign=nbcsn)
- [USA (Live only)](https://www.usanetwork.com/live?brand=usa&callsign=usa_east)
- [Peacock streaming service (Live and past events)](https://www.peacocktv.com/watch/2020-tokyo-olympics)
- [The Olympics official YouTube channel (Past events)](https://www.youtube.com/channel/UCTl3QQTvqHFjurroKxexy2Q)

You will have to sign into each service before being able to view that channel's content. For all the live only channels (NBC, CNBC, NBCSN, and USA) you will only have to sign in once to the USA website as all these channels can be accessed through USA.

![](https://cdn-learn.adafruit.com/assets/assets/000/103/647/medium800/circuitpython_Screen_Shot_2021-07-22_at_3.08.13_PM.png?1627397898)

## Going Further

Now is your chance to edit, adapt and change the macros code to however you'd like! Find another channel? Or just wanna have a Netflix button for good measure? You can add it! If you got this far, you earned a gold medal no matter what :)


## Featured Products

### Adafruit MacroPad RP2040 Starter Kit - 3x4 Keys + Encoder + OLED

[Adafruit MacroPad RP2040 Starter Kit - 3x4 Keys + Encoder + OLED](https://www.adafruit.com/product/5128)
Strap yourself in, we're launching in T-minus 10 seconds...Destination? A new Class M planet called MACROPAD! M here stands for Microcontroller because this 3x4 keyboard controller features the newest technology from the Raspberry Pi sector: say hello to the RP2040. It's a speedy...

Out of Stock
[Buy Now](https://www.adafruit.com/product/5128)
[Related Guides to the Product](https://learn.adafruit.com/products/5128/guides)
### Adafruit MACROPAD RP2040 Bare Bones - 3x4 Keys + Encoder + OLED

[Adafruit MACROPAD RP2040 Bare Bones - 3x4 Keys + Encoder + OLED](https://www.adafruit.com/product/5100)
Strap yourself in, we're launching in T-minus 10 seconds...Destination? A new Class M planet called MACROPAD! M here, stands for Microcontroller because this 3x4 keyboard controller features the newest technology from the Raspberry Pi sector: say hello to the RP2040. It's a speedy...
In Stock
[Buy Now](https://www.adafruit.com/product/5100)
[Related Guides to the Product](https://learn.adafruit.com/products/5100/guides)
### Adafruit MacroPad RP2040 Enclosure + Hardware Add-on Pack

[Adafruit MacroPad RP2040 Enclosure + Hardware Add-on Pack](https://www.adafruit.com/product/5103)
Dress up your Adafruit Macropad with PaintYourDragon's fabulous decorative silkscreen enclosure and hardware kit. You get the two custom PCBs that are cut to act as a protective bottom plate and and a mechanically-stabilizing keyboard plate.

Use the included M3 screws to attach the...

In Stock
[Buy Now](https://www.adafruit.com/product/5103)
[Related Guides to the Product](https://learn.adafruit.com/products/5103/guides)
### Kailh Mechanical Key Switches - 10 packs - Cherry MX Compatible

[Kailh Mechanical Key Switches - 10 packs - Cherry MX Compatible](https://www.adafruit.com/product/4996)
For crafting your very own custom keyboard, these **&nbsp;Kailh mechanical key switches** &nbsp;are deeee-luxe!

Come&nbsp;in a pack of 10 switches, plenty to make a small keyboard, or grab a few packs to build a full keyboard.

- Use these with our&nbsp;<a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/4996)
[Related Guides to the Product](https://learn.adafruit.com/products/4996/guides)
### Translucent Keycaps for MX Compatible Switches - 10 pack

[Translucent Keycaps for MX Compatible Switches - 10 pack](https://www.adafruit.com/product/4956)
Get ready&nbsp;to clacky to your heart's content. Here is a 10 pack of translucent keycaps for your next mechanical keyboard or [NeoKey](https://www.adafruit.com/?q=neokey&sort=BestMatch) project. Snap 'em onto a&nbsp; **Cherry MX or compatible...**

In Stock
[Buy Now](https://www.adafruit.com/product/4956)
[Related Guides to the Product](https://learn.adafruit.com/products/4956/guides)
### Clear DSA Keycaps for MX Compatible Switches - 10 pack

[Clear DSA Keycaps for MX Compatible Switches - 10 pack](https://www.adafruit.com/product/5013)
Get ready&nbsp;to clacky to your heart's content. Here is a 10 pack of clear transparent&nbsp;DSA keycaps for your next mechanical keyboard or&nbsp;[NeoKey](https://www.adafruit.com/?q=neokey&sort=BestMatch)&nbsp;project. Snap 'em onto any&nbsp; **Cherry MX or...**

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/5013)
[Related Guides to the Product](https://learn.adafruit.com/products/5013/guides)

## Related Guides

- [Adafruit MacroPad RP2040](https://learn.adafruit.com/adafruit-macropad-rp2040.md)
- [Minecraft Turbopad](https://learn.adafruit.com/minecraft-turbopad.md)
- [Keypad and Matrix Scanning in CircuitPython](https://learn.adafruit.com/key-pad-matrix-scanning-in-circuitpython.md)
- [MACROPAD Hotkeys](https://learn.adafruit.com/macropad-hotkeys.md)
- [MacroPad Braille Keycaps](https://learn.adafruit.com/macropad-braille-keycaps.md)
- [An Introduction to RP2040 PIO with CircuitPython](https://learn.adafruit.com/intro-to-rp2040-pio-with-circuitpython.md)
- [MacroPad Remote Procedure Calls over USB to Control Home Assistant](https://learn.adafruit.com/macropad-remote-procedure-calls-over-usb-to-control-home-assistant.md)
- [Ableton Live MacroPad Launcher](https://learn.adafruit.com/ableton-live-macropad-launcher.md)
- [Custom HID Devices in CircuitPython](https://learn.adafruit.com/custom-hid-devices-in-circuitpython.md)
- [Dragon Drop: a CircuitPython Game for MacroPad](https://learn.adafruit.com/dragon-drop-a-circuitpython-game-for-macropad.md)
- [3D Printed Stand for MacroPad RP2040](https://learn.adafruit.com/3d-printed-stand-for-macropad-rp2040.md)
- [Using QMK on RP2040 Microcontrollers](https://learn.adafruit.com/using-qmk-on-rp2040-microcontrollers.md)
- [AdaBox 019](https://learn.adafruit.com/adabox019.md)
- [MP3 Playback on RP2040 with CircuitPython](https://learn.adafruit.com/mp3-playback-rp2040.md)
- [Neotrellis M4 Live Launcher](https://learn.adafruit.com/neotrellis-live-launcher.md)
- [Split Ortho Keyboard with TCA8418 Matrix Expanders](https://learn.adafruit.com/split-ortho-keyboard.md)
