class documentation

class BlkLed(NeoLed):

Constructor: BlkLed(block_num)

View In Hierarchy

Led used to indicate block status.

This controls a NeoString led thats used to indictate overall block status as determined by both current sensing and RailCom channed 1 returns.

Method __init__ Initialise the Block LED
Method update Update led
Instance Variable _oc_state Undocumented
Instance Variable _rc_state Undocumented

Inherited from NeoLed:

Method clear Clear a colour from the LED.
Method set Set the colour of the LED
Method set_off Set the LED unlit.
Constant COMMS_LED Led for communications status
Constant DCC_LED Led for DCC status
Constant DEFAULT_B Default Brightness
Constant LED_B Blue
Constant LED_G Green
Constant LED_R Red
Instance Variable _i Undocumented
Instance Variable _rgb Undocumented
Instance Variable _string Undocumented
def __init__(self, block_num):

Initialise the Block LED

The first LED (0) is comms - block leds start from index 1

Parameters
block_numlogical number of the associated block
def update(self, event, data):

Update led

The led is updated to reflect the RailCom or current based occupancy.

RailCom Ch1 takes precedence.

Parameters
eventevent code
dataassociated data
_oc_state =

Undocumented

_rc_state =

Undocumented