Modifications

Sauter à la navigation Sauter à la recherche
211 octets ajoutés ,  31 juillet 2025 à 14:43
Ligne 228 : Ligne 228 :     
{{ambox|text=It is advised to use the UART(0) on GP0 & GP1. Indeed, UART(1) overlaps the SPI(0) used for Radio module. Alternative UART(1) position overlaps the I2C(0) bus. See the [[ENG-CANSAT-PICO-USER-GUIDE|Pinout]] for details.}}  
 
{{ambox|text=It is advised to use the UART(0) on GP0 & GP1. Indeed, UART(1) overlaps the SPI(0) used for Radio module. Alternative UART(1) position overlaps the I2C(0) bus. See the [[ENG-CANSAT-PICO-USER-GUIDE|Pinout]] for details.}}  
 +
 +
{{underline|'''Cansat V2 :'''}}
 +
 +
With Cansat V2, the CANSAT-BASE expose a UART Grove connector.
 +
 +
[[Fichier:ENG-CANSAT-V2-UART.jpg|480px]]
 +
 +
{{underline|'''Create an instance of UART :'''}}
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 233 : Ligne 241 :     
# UART(0) on GP0 & GP1
 
# UART(0) on GP0 & GP1
−
uart = UART( 0, baudrate=9600)  
+
uart = UART( 0, rx=Pin(0), tx=Pin(1), baudrate=9600)  
    
# UART(1) on GP4 & GP5
 
# UART(1) on GP4 & GP5
32 908

modifications

Menu de navigation