How ddrboxman/picodeck works
Picodeck is Raspberry Pi Pico firmware that emulates an Elgato Stream Deck Pedal over USB HID. Its principal workflow is: Stream Deck software queries device identity, sends pedal commands such as LED color changes, and receives button reports; firmware also reads physical switches and drives an optional NeoPixel. USB descriptors define the device interface, while the main firmware handles USB events and hardware behavior. SEGGER RTT provides a separate debugging output layer. Some main-loop and HID callback code was omitted from the excerpts, so those internal links are not inferred beyond documented behavior.
Main entry points: main.c Firmware Runtime · SEGGER_RTT.c RTT Buffer API · ws2812.pio.h Generated PIO Header · SEGGER_RTT.h RTT API Declarations
Components 12
USB HID Device
- Firmware Runtime
src/main.c - HID Descriptors
src/usb_descriptors.c - TinyUSB Settings
src/tusb_config.h
Pedal I/O
- Pedal Switches
- NeoPixel Strip
- WS2812 Program
src/ws2812.pio - Generated PIO Header
generated/ws2812.pio.h
RTT Debugging
- RTT Buffer API
RTT/SEGGER_RTT.c - RTT API Declarations
RTT/SEGGER_RTT.h - RTT Configuration
Config/SEGGER_RTT_Conf.h - RTT Formatting
RTT/SEGGER_RTT_printf.c
Other components
- Stream Deck Software
Connections 11
- Stream Deck Software → Firmware Runtime: queries and commands
README.md - Firmware Runtime → Stream Deck Software: sends button reports
README.md - HID Descriptors → Stream Deck Software: defines HID interface
src/usb_descriptors.c - Firmware Runtime → Pedal Switches: reads switch inputs
- Firmware Runtime → NeoPixel Strip: updates LED color
src/main.c - Firmware Runtime → Generated PIO Header: writes pixel data
src/main.c - Generated PIO Header → WS2812 Program: implements PIO program
- Firmware Runtime → RTT Buffer API: writes debug text
src/main.c - RTT Formatting → RTT Buffer API: writes formatted output
RTT/SEGGER_RTT_printf.c - RTT Buffer API → RTT API Declarations: implements API
RTT/SEGGER_RTT.c - RTT API Declarations → RTT Configuration: uses configuration
RTT/SEGGER_RTT.h