Modifications

Sauter à la navigation Sauter à la recherche
549 octets ajoutés ,  27 avril 2025 à 17:17
Ligne 63 : Ligne 63 :  
==== __init__() ====
 
==== __init__() ====
   −
Constructor of the {{fname|DinControler}} class.
+
Constructor of the {{fname|DinControler}} class. This constructor is not called directly, the DinControler class is used as a based call for a given MCU category class (RP2040, ESP32, ...).
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
−
def __init__( self, BackplaneClass, RunApp_pin )
+
def __init__( self, BackplaneClass, RunApp_pin ):
 
</syntaxhighlight>
 
</syntaxhighlight>
    
* '''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).
 
* '''RunApp_pin''' : identification of the input pin to be used as RUN_APP swich. It will be configured with Internal Pullup. Software will not start (or will stop) when the pin is tied to ground.
 
* '''RunApp_pin''' : identification of the input pin to be used as RUN_APP swich. It will be configured with Internal Pullup. Software will not start (or will stop) when the pin is tied to ground.
 +
 +
==== __setup__() ====
 +
 +
Setup the ''userloop'' and other key parameter for an asynchronous code execution with {{fname|run()}}. The ''userloop'' is the main user code repetitively executed by the asynchronous execution.
 +
 +
<syntaxhighlight lang="python">
 +
def setup( self, setup=None, loop=None, on_tasks_create=None ):
 +
</syntaxhighlight>
 +
 +
* '''setup''' : xxx
 +
* '''loop''' : xxx
 +
* '''on_task_create''' : cccc
32 908

modifications

Menu de navigation