class documentation
Hardware configuration for the Quad local PCB.
This provides the hardware configuration for the Quad Local RailCom detector board (RC_LCL_4).
| Class Method | get |
Get the Hardware configuration instance. |
| Method | __init__ |
Construct the Local Configuration. |
| Method | get |
Get local detector hardware assignements. |
| Constant | BLK |
block occupancy is on I2C 1(default GPIO pins 6 & 7) |
| Instance Variable | MAX |
Number of NeoPixels. |
| Property | dcc |
GPIO pin for DCC power on sense. |
| Instance Variable | _dcc |
Undocumented |
| Instance Variable | _max |
Undocumented |
| Instance Variable | _rx |
Undocumented |
| Instance Variable | _state |
Undocumented |
Inherited from HwConf:
| Constant | NP |
NeoPixel State Machine number for RP2040 (Pico, PicoW etc). |
| Constant | NP |
State Machine number for RP2350 (Pico2, Pico2W) |
| Constant | OLED |
The oled is on I2C 0 (default GPIO pins 4 & 5). |
| Property | max |
Number of Leds |
| Property | name |
Configuration name for display. |
| Property | np |
GPIO Pin for NeoPixel chain. |
| Class Variable | _hw |
Undocumented |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _np |
Undocumented |
overrides
rp2da2.lib.hw_conf.HwConf.get_instanceGet the Hardware configuration instance.
This returns the singleton Local Hardware Config instance.
| Returns | |
| The DCC Command instance |
overrides
rp2da2.lib.hw_conf.HwConf.__init__Construct the Local Configuration.
Define DCC sense pin used for detectiing cutouts and allocate pin numbser and state machine number for each local detector.