Modifications

Sauter à la navigation Sauter à la recherche
33 octets ajoutés ,  22 mai 2016 à 18:55
Ligne 8 : Ligne 8 :  
To use the REPL, you must connect to the WiPy either via [[Hack-wipy-generalite#REPL_Telnet|telnet]], or with a USB to serial converter wired to one of the two UARTs on the WiPy. To enable REPL duplication on UART0 (the one accessible via the expansion board) do:
 
To use the REPL, you must connect to the WiPy either via [[Hack-wipy-generalite#REPL_Telnet|telnet]], or with a USB to serial converter wired to one of the two UARTs on the WiPy. To enable REPL duplication on UART0 (the one accessible via the expansion board) do:
   −
<nowiki>>>> from machine import UART
+
<syntaxhighlight lang="python">
 +
>>> from machine import UART
 
>>> import os
 
>>> import os
 
>>> uart = UART(0, 115200)
 
>>> uart = UART(0, 115200)
>>> os.dupterm(uart)</nowiki>
+
>>> os.dupterm(uart)
 +
</syntaxhighlight>
    
Place this piece of code inside your boot.py so that it’s done automatically after reset.
 
Place this piece of code inside your boot.py so that it’s done automatically after reset.
29 917

modifications

Menu de navigation