piBrick PocketCM5 Keyboard Firmware
make pibrick_pocketcm5_keyboard:default
- Turn off the device
- Press and hold User Button 1 (middle-left, below the USB2 connector)
- Plug the bottom USB-C port into your PC
- The device will appear on your PC as a mass storage device labeled
RPI-RP2 - Copy the
uf2firmware file intoRPI-RP2 - The keyboard will automatically restart and appear as an HID device on your PC
- You can now turn on your device
You can customize your keys using https://vial.rocks/
- If you mess up the
VIALconfiguration and want to reset the keymaps, you can download pibrick_pocketcm5-default-keymaps.vil
Layer 0 is the default layer, mainly for letter characters.
- LGui / Super Key is on the top panel
- Mouse drag using the Green / Call button, right-click using the Red / Hangup button
- The Back button is configured as a TAP-DANCE key with the following behavior:
- Default tap:
ESC - Tap and hold: Toggle trackpad mode
- Blinking: Arrow mode
- Static / Default: Mouse mode
- Default tap:
TABis on the dollar$key, close toEnter- Modifier keys (
ALT,CTRL,SHIFT) useOSMmode. You can tap a modifier once and then press another key to apply the combination, or tap and hold the modifier simultaneously with other keys. - Press
SYMto move to Layer 1. This is a single-shot mode: it processes one character and immediately returns to Layer 0. You can also tap and holdSYMto stay in Layer 1.
Layer 1 contains the main symbols and numeric characters printed on the physical keyboard.
- Press
SYMagain to go to Layer 2 - Press
Right Shiftto go to Layer 3
Layer 2 is used for extended characters.
- Press
SYMagain to return to Layer 0 - Press
Right Shiftto go to Layer 3
Layer 3 contains function and navigation keys.
- You can go to Layer 2 from the default layer by double-tapping the
SYMkey. - You can go to Layer 3 from the default layer by tapping
SYMand thenRight Shift. - Tap and hold the
BACKbutton to toggle trackpad mode and use it as arrow keys. The trackpad click becomesENTERwhen in Arrow mode. - Double-tap and hold the
SYMkey, then rotate the rotary wheel to change the keyboard backlight. - Double-tap
SYM, then tap$to input an ampersand&.
Column GPIO
GPIO 8GPIO 9GPIO 10GPIO 11GPIO 12GPIO 13
Rows GPIO
GPIO 1GPIO 2GPIO 3GPIO 4GPIO 5GPIO 6GPIO 7
Direct & Rotary Pins GPIO
GPIO 24- User Button 1 (Left Top)GPIO 17- User Button 2 (Left Bottom)GPIO 0- User Button 3 (Right Top)GPIO 15- User Button 4 (Right Bottom)GPIO 20- User Button 5 (Rotary Switch)GPIO 14- BBQ20 End/Hangup ButtonGPIO 19- Rotary Encoder AGPIO 21- Rotary Encoder B
Backlight & Indicators
GPIO 25- Keyboard backlightGPIO 29- Panel Backlight (Arrow mode indicator)GPIO 26- Red IndicatorGPIO 27- Green IndicatorGPIO 28- Blue Indicator
Trackpad
GPIO 16- Trackpad ResetGPIO 22- Trackpad MotionGPIO 23- Trackpad I2C SCLGPIO 18- Trackpad I2C SDA