Modifications

Sauter à la navigation Sauter à la recherche
3 octets supprimés ,  21 février 2022 à 00:41
Ligne 21 : Ligne 21 :  
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
 
>>> from machine import Pin
 
>>> from machine import Pin
>>> in = Pin( 15, Pin.IN )
+
>>> p = Pin( 15, Pin.IN )
>>> in.value()
+
>>> p.value()
 
0            <--- Pin tied to GND
 
0            <--- Pin tied to GND
>>> in.value()
+
>>> p.value()
 
1            <--- Pin tied to 3.3V
 
1            <--- Pin tied to 3.3V
 
</syntaxhighlight>
 
</syntaxhighlight>
29 918

modifications

Menu de navigation