Modifications

Sauter à la navigation Sauter à la recherche
583 octets ajoutés ,  24 février 2022 à 23:48
Ligne 161 : Ligne 161 :     
=== I2C Bus ===
 
=== I2C Bus ===
The onboard LED is tied to the GPIO 25. Here how to control it.
+
An I2C bus is a very popular serial bus in electronic to connect sensors and electronics to a microcontroler.
 +
 
 +
Maybe not the fastest bus, this bus is easy to wire and to manage and requires only 2 wires:
 +
* SDA: Serial Data
 +
* SCL: Serial Clock
 +
 
 +
The I2C protocol use an address (0..127) to contact the target board with request and waiting for response. For sure each sensor boards must have an unique address on the I2C. On I2C implementation, the microcontroler do always keeps the control over the I2C communication.
 +
 
 +
[[Fichier:ENG-CANSAT-FEATHER-PICO-I2C.png|640px]]
 +
 
 +
The Pico do have several I2C bus as [[ |mentionned on the PinOut diagram]]
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
29 917

modifications

Menu de navigation