This project is about a typical macro keyboard based on Raspberry Pi Pico connected via USB to my PC. It emulates keyboard strokes and can be used for two scenarios. First I use it to collect some XP points in Fortnite by emulating several movements to glitch in special XP levels. So I don't need to be present at my PC. Second it is used for Home Office and works with Microsoft Teams. I can (un-)mute microphone and camera with it. A couple of buttons and a display make it easier to control. The red button resets the board, the other three buttons are for navigation in the menu.
Main menu when connecting the board or reset:
Fortnite menu with two modes walk in circles and run forward. These are the most common movesets I use for the several XP levels:
Teams menu with two modes (un)mute microphone and (un)mute camera:
The three buttons are assigned to the shown tiles on the menu and switch the modes or return to previous menu. The Teams modes are momentary (mute / unmute) and the Fortnite modes are permanent.
The Fortnite modes can be canceled with the return button (here green).
You need the following by now:
- A Raspberry Pi Pico connected via USB
- A separate Display. I used a 1,3" OLED I2C 128 x 64 Pixel Display with a SSH 1106 controller.
⚠️ If you use another display you must adjust the display settings in the code. - A couple of momentary switches.
- For development I used Thonny GUI and Circuit Python because it supports the Keyboard HID better. You must add the following libraries from Adafruit then manually:
- adafruit_display_text
- adafruit_displayio
- adafruit_hid
- For adjusting the spritesheets / icons I recommend this Emoji Flipper project from todbot. It helps to understand the logic and find the right tool to create spritesheets.
To check and change the wired GPIO pins please also have a look in the code.
- The three menu buttons are connected to GPIO 0, 1 and 2 and soldered with a resistor to ground.
- The reset button is connected to the RUN pin as described here.
- Display I2C is on GPIO 16 and 17. Power and ground are connected to the Pico pins.
There is also an implemented Fortnite Random mode which is not in use by now.