Modifications

Sauter à la navigation Sauter à la recherche
436 octets ajoutés ,  20 août 2016 à 15:54
Ligne 18 : Ligne 18 :  
pyb.repl_uart( pyb.UART(1,9600) )
 
pyb.repl_uart( pyb.UART(1,9600) )
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
= REPL Bluetooth permanent =
 +
Si le test est concluant, vous pouvez activer le REPL Bluetooth de façon permanente en saisissant le code suivant en première ligne de votre fichier {{fname|main.py}}
 +
 +
<syntaxhighlight lang="python">
 +
pyb.repl_uart( pyb.UART(1,9600) )
 +
</syntaxhighlight>
 +
 +
Gardez néanmoins à l'esprit qu'un programme fonctionnant (depuis {{fname|main.py}} bloque les interactions REPL (aussi via USB que via Bluetooth).
    
{{MicroPython-bluetooth-TRAILER}}
 
{{MicroPython-bluetooth-TRAILER}}
29 918

modifications

Menu de navigation