

I downloaded the rgbkeypad.py library, placed it under lib/ and wrote the following program in code.pyįrom rgbkeypad import RGBKeypad keypad = RGBKeypad () # make all the keys red keypad. Any dependency can be put under the lib/ directory, itself placed at the root of the board filesystem. In the end, I went with the CircuitPython starting-up guide, and was ready to make these keys light up.Ī CircuitPython main program lives in a code.py file, that is executed when the board is plugged in. It took me a while to figure out that these are more or less the same. If you, like myself, want to program a Raspberry Pi Pico in Python, you have two options: The main idea would be to use 12 of the available 16 keys to start and stop audio tracks, and use the 4 remaining keys as controls (increase/decrease volume, pause all tracks). The color and brightness of the LEDs under the keys is programmable, meaning I could go for the look and feel of a Launchpad, while keeping my budget and the overall complexity in check. The project started to take shape when I stumbled upon the Pimoroni RGB Keypad, a 4x4 rainbow-illuminated keypad that I could program using a Raspberry Pi Pico, for a budget of about 30€. What I wanted was something simpler: a way to play different long sound ambiance tracks at the same time, and adjust their respective volume to create an immersive atmosphere.
#D ambience full#
The cheapest Launchpad starts at 110€, and it is a full fledged MIDI controller. I have been thinking about using a Launchpad to control and mix the ambiance while we play, but the more I read about its design, the less it seemed to fit. It can increase their stress and sense of urgency during a fight, galvanize them during a harrowing speech, or break their heart when they realize they've just lost something and there's no getting it back.

I find that an immersive sound ambiance is key to helping tabletop RPG players engage.
