Modifications

Sauter à la navigation Sauter à la recherche
189 octets ajoutés ,  26 février 2022 à 02:03
Ligne 239 : Ligne 239 :     
uart = UART(0, baudrate=19200, bits=8, parity=None, stop=1)
 
uart = UART(0, baudrate=19200, bits=8, parity=None, stop=1)
os.dupterm( uart, 1 )
+
os.dupterm( uart, 1 ) # Pico Firmware must be recompile with dupterm()
 
</syntaxhighlight>
 
</syntaxhighlight>
   Ligne 246 : Ligne 246 :  
The {{fname|dupterm()}} function is [https://docs.micropython.org/en/latest/library/os.html#terminal-redirection-and-duplication described here into the MicroPython documentation].
 
The {{fname|dupterm()}} function is [https://docs.micropython.org/en/latest/library/os.html#terminal-redirection-and-duplication described here into the MicroPython documentation].
   −
{{underline|Tips & Tricks:}}<br />One of the key parameter of UART is the {{fname|timeout}} parameter which indicates the timeout (in ms) to receive the end-of-line on {{fname|UART.readline()}} .
+
{{underline|Tips & Tricks:}}
 +
* One of the key parameter of UART is the {{fname|timeout}} parameter which indicates the timeout (in ms) to receive the end-of-line on {{fname|UART.readline()}} .
 +
* See this [https://forums.raspberrypi.com/viewtopic.php?t=304410 Raspberry-Pi forum thread] to compile a dupterm() enabled firmware for Pico.
    
=== SPI Bus ===
 
=== SPI Bus ===
29 917

modifications

Menu de navigation