class documentation

class ComsLed(NeoLed):

Constructor: ComsLed()

View In Hierarchy

Led used to indicate communications status.

This controls a NeoString led thats used to indictate overall communications status as reported by Wi-Fi and MQTT client.

Class Method get_instance Return the singleton instance
Method __init__ Comms Led Constructor.
Method update Update the Comms Led.
Class Variable _comms_led 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
@classmethod
def get_instance(cls):

Return the singleton instance

If the singleton already exists then it is returned. Otherwise it is created and returned.

def __init__(self):

Comms Led Constructor.

def update(self, event, _):

Update the Comms Led.

The led is updated to reflect the Wi-Fi MQTT state.

Parameters
eventevent code from the report
_data from the report (not used)
_comms_led =

Undocumented