Modifications

Sauter à la navigation Sauter à la recherche
33 octets ajoutés ,  19 février 2022 à 02:23
Ligne 95 : Ligne 95 :  
It can be controled with few lines of codes, just key-in them directly in the REPL session
 
It can be controled with few lines of codes, just key-in them directly in the REPL session
   −
<nowiki>from machine import Pin
+
<syntaxhighlight lang="python">
 +
from machine import Pin
 
led = Pin(25, Pin.OUT)
 
led = Pin(25, Pin.OUT)
 
led.value(1) # allume la LED
 
led.value(1) # allume la LED
led.value(0) # éteint la LED</nowiki>
+
led.value(0) # éteint la LED
 +
</syntaxhighlight>
    
The following screen capture just show the results of entering the command lines.  
 
The following screen capture just show the results of entering the command lines.  
29 917

modifications

Menu de navigation