Modifications

Sauter à la navigation Sauter à la recherche
38 octets ajoutés ,  25 février 2022 à 00:29
Ligne 173 : Ligne 173 :  
The Pico do have several I2C bus as [[ENG-CANSAT-PICO-USER-GUIDE|mentionned on the PinOut diagram]].  
 
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.}}
+
{{ambox|text=We do highly recommend to use the I2C(0) bus  as it is connected to kit Qwiic connector and UEXT connector.}}
    
[[Fichier:ENG-CANSAT-FEATHER-PICO-I2C-02.png|480px]]
 
[[Fichier:ENG-CANSAT-FEATHER-PICO-I2C-02.png|480px]]
Ligne 180 : Ligne 180 :  
from machine import I2C
 
from machine import I2C
   −
i2c = I2C( 1 ) # Add freq=100000 to reduce speed @ 100 KHz
+
i2c = I2C( 0 ) # sda=GP8, scl=GP9
 +
# i2c = I2C( 0, freq=100000 ) # Reduce bus speed @ 100 KHz
 
</syntaxhighlight>
 
</syntaxhighlight>
  
29 917

modifications

Menu de navigation