Skip to content

A Raspberry Pi Pico DCC command station implementation for testing

Notifications You must be signed in to change notification settings

elpollouk/pico-alink

Repository files navigation

pico-alink

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.

Installation

  1. Install mpremote.
  2. Connect your Raspberry Pi Pico.
  3. Run install.py.
  4. Disconnect and reconnect your Pico.

Debug Loco

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.

About

A Raspberry Pi Pico DCC command station implementation for testing

Topics

Resources

Stars

Watchers

Forks

Languages