Modifications

Sauter à la navigation Sauter à la recherche
63 octets supprimés ,  29 avril 2025 à 23:05
Ligne 30 : Ligne 30 :  
Your knowledge will quickly progress by reading and understanding them.
 
Your knowledge will quickly progress by reading and understanding them.
   −
The following example show how the {{fname|din}} object offers the access to the various input/output of the backplane (the two relays).
+
The following example show how the {{fname|din}} object offers the access to the various inputs/outputs of the backplane (the two relays in the present case).
 
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
 
from mydin import configure
 
from mydin import configure
Ligne 37 : Ligne 37 :  
import time
 
import time
   −
# Which Controler + Backplane to use
   
din = configure( Pico3Mod, TwoRelay3Mod )
 
din = configure( Pico3Mod, TwoRelay3Mod )
   −
# === Relays ==================================
   
print( "Manipulate the relays" )
 
print( "Manipulate the relays" )
 
din.rel1.on()
 
din.rel1.on()
32 908

modifications

Menu de navigation