Modifications
Sauter à la navigation
Sauter à la recherche
← Modification précédente
Modification suivante →
ENG-CANSAT-PICO-HowTo
(voir la source)
Version du 21 février 2022 à 00:09
1 024 octets ajoutés
,
21 février 2022 à 00:09
→Control an output
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 ==
Admin
Bureaucrates
,
Administrateurs
29 918
modifications
Menu de navigation
Outils personnels
Se connecter
Espaces de noms
Page
Discussion
Variantes
Affichages
Lire
Voir le texte source
Voir l’historique
Plus
Rechercher
Navigation
ARDUINO
RASPBERRY-PI
[:: PI Hacking ::]
Particle.IO
Micro Python
Imprimante 3D
Actualités
Modifications récentes
Page au hasard
Aide
Outils
Pages spéciales
Version imprimable