class documentation

class HeartBeat(Device):

Constructor: HeartBeat()

View In Hierarchy

Heart Beat

This singleton class runs an asycio task to flash the Pico on board LED once per second.

Class Method get_instance Return the singleton instance
Method __init__ Heart Beat Constructor
Async Method _flash_led Flash the LED on board LED
Class Variable _hb Undocumented
Instance Variable _led Undocumented
@classmethod
def get_instance(cls):

Return the singleton instance

The singleton is created on the first call.

def __init__(self):

Heart Beat Constructor

Initiate the on board LED GPIO and create the asynchio task to flash it.

async def _flash_led(self):

Flash the LED on board LED

_hb =

Undocumented

_led =

Undocumented