Modifications

Sauter à la navigation Sauter à la recherche
Ligne 29 : Ligne 29 :     
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
pyb.repl_uart( pyb.UART(1,9600) )
+
from machine import UART
 +
from os import dupterm
 +
 
 +
uart = UART( 1, 9600 )
 +
dupterm( uart )
 
pyb.LED(4).on() # Turn on the Blue LED
 
pyb.LED(4).on() # Turn on the Blue LED
 
</syntaxhighlight>
 
</syntaxhighlight>
    
Gardez néanmoins à l'esprit qu'un programme fonctionnant (depuis {{fname|main.py}} bloque les interactions REPL (aussi via USB que via Bluetooth).
 
Gardez néanmoins à l'esprit qu'un programme fonctionnant (depuis {{fname|main.py}} bloque les interactions REPL (aussi via USB que via Bluetooth).
  −
[[Fichier:MicroPython-bluetooth-REPL-10.jpg]]
      
{{MicroPython-bluetooth-TRAILER}}
 
{{MicroPython-bluetooth-TRAILER}}
29 917

modifications

Menu de navigation