mirror of
https://forge.apps.education.fr/blender-edutech/blender-edutech-ressources-pedagogiques.git
synced 2024-01-27 08:26:31 +01:00
Supprimé Lycee/programmation_python/snt/jumeau-maqueen/microbit-lecteur_portserie.py
This commit is contained in:
parent
4e7d264c99
commit
9128d7156d
@ -1,13 +0,0 @@
|
|||||||
from microbit import uart, sleep
|
|
||||||
from microbit import *
|
|
||||||
|
|
||||||
uart.init(baudrate=9600) # Initialisation du port série
|
|
||||||
|
|
||||||
while True:
|
|
||||||
while not uart.any(): # Attente d'un message
|
|
||||||
pass
|
|
||||||
|
|
||||||
display.scroll('ok : ') # Bonne recéption du message
|
|
||||||
content = uart.readline()
|
|
||||||
display.scroll(content[:-1]) # Affichage du message sans le '/n'
|
|
||||||
sleep(400)
|
|
Loading…
x
Reference in New Issue
Block a user