Modifications

Sauter à la navigation Sauter à la recherche
216 octets ajoutés ,  13 juin 2016 à 11:46
Ligne 74 : Ligne 74 :  
[[Fichier:Hack-wipy-pinout-pmw.jpg]]
 
[[Fichier:Hack-wipy-pinout-pmw.jpg]]
   −
== Port séries/Uart (todo) ==
+
== Port séries/UART (todo) ==
 +
TODO
 +
 
 +
<syntaxhighlight lang="python">
 +
from machine import UART
 +
# Ouverture du port série 0 à 9600 bauds
 +
uart = UART(0, baudrate=9600)
 +
uart.write('hello')
 +
uart.read(5) # Lecture de 5 bytes/octets
 +
</syntaxhighlight>
    
== Bus I2C (todo) ==
 
== Bus I2C (todo) ==
29 917

modifications

Menu de navigation