Modifications
Sauter à la navigation
Sauter à la recherche
← Modification précédente
Modification suivante →
ENG-CANSAT-PICO-MISSION1-CAPTURE
(voir la source)
Version du 31 juillet 2025 à 21:22
63 octets ajoutés
,
31 juillet 2025 à 21:22
→Creating ressources
Ligne 289 :
Ligne 289 :
Then we create the needed buses resources to access the various sensor.
Then we create the needed buses resources to access the various sensor.
−
<syntaxhighlight lang="python">spi = SPI(0, baudrate=50000, polarity=0, phase=0, firstbit=SPI.MSB)
+
<syntaxhighlight lang="python">spi = SPI(0
, mosi=Pin(7), miso=Pin(4), sck=Pin(6)
, baudrate=50000, polarity=0, phase=0, firstbit=SPI.MSB)
nss = Pin( 5, Pin.OUT, value=True )
nss = Pin( 5, Pin.OUT, value=True )
rst = Pin( 3, Pin.OUT, value=False )
rst = Pin( 3, Pin.OUT, value=False )
−
i2c = I2C(0)
+
i2c = I2C(0
, sda=Pin(8), scl=Pin(9)
)
</syntaxhighlight>
</syntaxhighlight>
Admin
Bureaucrates
,
Administrateurs
32 908
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