Turn your Pimoroni Pico RBG Keypad into a USB Shortcut Keypad that is configurable via a simple Yaml file.
Read the full article here: https://www.kevsrobots.com/blog/picodeck.html
To get up and running quickly,
- Flash your Pico with the latest version of Circuit Python, from Adafruit
- Clone this repository and copy all the files on to the pico
- Edit the
keypad.ymlfile to setup your own keyboard shortcuts - Restart the Pico and away you go.
You can configure the PiDeck using the keypad.yml file. It has 16 sections, one for each key.
- Each key as a
name0 to 15 (why not 1 to 16? - it's a programming thing!) - Then it has an
onandoffHEX RGB value (without any leading#character). The off value will be shown when the key isn't press, the on value when the key is pressed. - If the
effectis set topulsethe key will pulse between the off and on values. - The
commandis the sequence of keys (or shortcut) that will be sent to the computer. On a Mac, you can use the Automator to specify aserviceand then Application to launch, then in the Keyboard panel with Settings you can specify the shortcut key combination to launch that app. Pair that with the key combination in thecommandand you have yourself a productivity Swiss Army knife. - Finally
button_typelets you choose whether the key is a singlepressmomentry touch button, or if it is atogglebutton where it stays on until you press it again.
- name: 0
off: FFFFFF
on: B4F8C8
effect: none
command: COMMAND S
button_type: press
- name: 1
off: FFFF00
on: 00FF00
effect: pulse
command: COMMAND TAB
button_type: toggle