Modifications

Sauter à la navigation Sauter à la recherche
130 octets ajoutés ,  25 février 2022 à 00:12
Ligne 171 : Ligne 171 :  
[[Fichier:ENG-CANSAT-FEATHER-PICO-I2C.png|640px]]
 
[[Fichier:ENG-CANSAT-FEATHER-PICO-I2C.png|640px]]
   −
The Pico do have several I2C bus as [[ENG-CANSAT-PICO-USER-GUIDE|mentionned on the PinOut diagram]]. We do highly recommend to use the I2C bus  
+
The Pico do have several I2C bus as [[ENG-CANSAT-PICO-USER-GUIDE|mentionned on the PinOut diagram]].  
 +
 
 +
{{ambox|text=We do highly recommend to use the I2C(1) bus as it is connected to Qwiic connector and UEXT connector.}}
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
from machine import Pin
+
from machine import I2C
x
+
 
x
+
i2c = I2C( 1 ) # Add freq=100000 to reduce speed @ 100 KHz
x
  −
x
   
</syntaxhighlight>
 
</syntaxhighlight>
  
29 917

modifications

Menu de navigation