Galactic github is a micropython plugin for the Pimoroni Galactic Unicorn LED matrix. It displays your github contributions.
- Pico W Smart LED Matrix – Galactic Unicorn (53x11 – 583 pixels)
- A github account
- A github personal access token
- 2.4GHz WiFi connection
- Clone this repository
- Open the
main.py
file in your IDE of choice. Find the following parameters and replace them with your own information:GITHUB_USERNAME
<-- Github account github usernameGITHUB_TOKEN
<-- Github personal access tokenWIFI_SSID
<-- 2.4GHz WiFi SSIDWIFI_PASSWORD
<--2.4GHz WiFi password
- Connect to the Galactic Unicorn's onboard Raspberry Pi Pico W via USB
- Copy
main.py
into the root directory of the Pico W.
- Connect Pico W to power
- Wait for the Pico W to connect to WiFi and fetch your github contributions
- Voila! You should see your github contributions displayed on the Galactic Unicorn LED matrix.
Connect to the Pico W via USB and view the console output
The onboard wifi can be a bit finicky. If you're having trouble connecting, try unplugging and waiting a few minutes before attempting again. Socket memory leaks in the urequests
package is a known issue.
- Connect Pico W to Thonny and reset by typing machine.reset() in the REPL console.
- Unplug Pico W and wait a few minutes before attempting to connect again.
- Ping github API every 60 seconds to update contributions. Currently unavailable due to memory leaks in the
urequests
package's json parser. - Persistent state storage
- Play a sound and display celebratory message when new contributions are detected
- Create a 3D printed stand and wall mount for the Galactic Unicorn