Modifications

Sauter à la navigation Sauter à la recherche
1 octet ajouté ,  21 février 2022 à 00:54
Ligne 43 : Ligne 43 :  
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
 
>>> from machine import Pin
 
>>> from machine import Pin
>>> p = Pin( 15, Pin.IN, PIN.PULLUP )
+
>>> p = Pin( 15, Pin.IN, PIN.PULL_UP )
 
>>> p.value()
 
>>> p.value()
 
0                <--- Pin tied to GND
 
0                <--- Pin tied to GND
29 917

modifications

Menu de navigation