Modifications

Sauter à la navigation Sauter à la recherche
1 024 octets ajoutés ,  21 février 2022 à 00:09
Ligne 15 : Ligne 15 :     
This will work the same with any GPIO pins.
 
This will work the same with any GPIO pins.
 +
 +
== Input Reading ==
 +
The onboard LED is tied to the GPIO 25. Here how to control it.
 +
 +
<syntaxhighlight lang="python">
 +
from machine import Pin
 +
x
 +
x
 +
x
 +
x
 +
</syntaxhighlight>
 +
 +
== Analog Reading ==
 +
The onboard LED is tied to the GPIO 25. Here how to control it.
 +
 +
<syntaxhighlight lang="python">
 +
from machine import Pin
 +
x
 +
x
 +
x
 +
x
 +
</syntaxhighlight>
 +
 +
== PWM Output ==
 +
The onboard LED is tied to the GPIO 25. Here how to control it.
 +
 +
<syntaxhighlight lang="python">
 +
from machine import Pin
 +
x
 +
x
 +
x
 +
x
 +
</syntaxhighlight>
 +
 +
== Hardware buses ==
 +
 +
=== I2C Bus ===
 +
The onboard LED is tied to the GPIO 25. Here how to control it.
 +
 +
<syntaxhighlight lang="python">
 +
from machine import Pin
 +
x
 +
x
 +
x
 +
x
 +
</syntaxhighlight>
 +
 +
=== UART Bus ===
 +
The onboard LED is tied to the GPIO 25. Here how to control it.
 +
 +
<syntaxhighlight lang="python">
 +
from machine import Pin
 +
x
 +
x
 +
x
 +
x
 +
</syntaxhighlight>
 +
 +
 +
=== SPI Bus ===
 +
The onboard LED is tied to the GPIO 25. Here how to control it.
 +
 +
<syntaxhighlight lang="python">
 +
from machine import Pin
 +
x
 +
x
 +
x
 +
x
 +
</syntaxhighlight>
    
== Additional tutorials ==
 
== Additional tutorials ==
29 918

modifications

Menu de navigation