A Raspberry Pi Pico DCC command station implementation for testing.
Compatible with the Waveshare RP2040-LCD-0.96, set LCD_LOGGER
to lcd_rp2040lcd096
in config.py
to enable.
Debug menu can be accessed by sending ~
to the device using mpremote.
- Install mpremote.
- Connect your Raspberry Pi Pico.
- Run install.py.
- Disconnect and reconnect your Pico.
It is possible to invoke debug functions by sending function requests to loco id 9999
. The supported functions are:
Function | Type | Action |
---|---|---|
F0 | Trigger | Write current run time stats to log. |
F1 | Latch | Toggle onboard LED. |
F26 | Latch | Simulate device error. Set loco speed to specify the number of seconds to wait before entering the error state. |
F27 | Trigger | Delete boot.py from Pico file system. |
F28 | Trigger | Exit the Python script. |