Modifications

Sauter à la navigation Sauter à la recherche
188 octets ajoutés ,  25 mai 2021 à 08:15
Ligne 58 : Ligne 58 :  
from machine import I2C
 
from machine import I2C
 
i2c = I2C( sda=Pin(13), scl=Pin(16) )
 
i2c = I2C( sda=Pin(13), scl=Pin(16) )
 +
</syntaxhighlight>
 +
 +
Instancier le port série sur le connecteur UEXT en 9600 Bauds 8N1
 +
 +
<syntaxhighlight lang="python">
 +
from machine import UART
 +
ser = UART(1, tx=4, rx=36, baudrate=9600 )
 
</syntaxhighlight>
 
</syntaxhighlight>
  
29 917

modifications

Menu de navigation