Modifications

Sauter à la navigation Sauter à la recherche
789 octets ajoutés ,  28 avril 2025 à 17:18
Ligne 81 : Ligne 81 :  
Constructor of the {{fname|Pico3Mod}} class, specialized version of the PicoControler for the 3 modules DIN case. This constructor will creates the objects & resources specific to the {{fname|Pico3Mod}} board.   
 
Constructor of the {{fname|Pico3Mod}} class, specialized version of the PicoControler for the 3 modules DIN case. This constructor will creates the objects & resources specific to the {{fname|Pico3Mod}} board.   
   −
Pico3Mod inherits from PicoControler and DinControler. As a consequence, {{fname|Pico3Mod}} also [[Mydin-classes-diagram|inherits from the methods and properties of the both ancestors]].
+
As Pico3Mod inherits from PicoControler and DinControler, it then [[Mydin-classes-diagram|inherits from the methods and properties of the both ancestors]].
 +
 
 +
The {{fname|__init__()}} creates all objects made available through the properties.  
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 88 : Ligne 90 :     
* '''BackplaneClass''' : Class of the backplane to be associated with the controler (eg: TwoRelay3Mod).
 
* '''BackplaneClass''' : Class of the backplane to be associated with the controler (eg: TwoRelay3Mod).
 +
 +
{{fname|__init__()}} is also responsible for:
 +
* setting up MCU RTC with the external RTC date & time.
 +
* setting up callbacks for the buttons
 +
* made the LEDs accessible thanks to the {{fname|PcaPinAdapter}} class.
 +
* scanning the OneWire bus for existing sensors
 +
* sound the buzzer as last init operation
 +
 +
==== was_pressed( idx ): bool ====
 +
 +
xxx
 +
 +
<syntaxhighlight lang="python">
 +
def was_pressed( self, idx ):
 +
</syntaxhighlight>
 +
 +
 +
==== task_setup(): bool ====
 +
 +
xxx
 +
async def __coro_ds18b20( self )
 +
async def __coro_monitor( self ):
 +
 +
<syntaxhighlight lang="python">
 +
def tasks_setup( self, async_evloop ):
 +
</syntaxhighlight>
 +
 +
 +
 +
==== before_run(): bool ====
 +
 +
xxx
 +
 +
<syntaxhighlight lang="python">
 +
def before_run( self ):
 +
</syntaxhighlight>
32 908

modifications

Menu de navigation