mirror of
https://forge.apps.education.fr/blender-edutech/blender-edutech-ressources-pedagogiques.git
synced 2024-01-27 08:26:31 +01:00
Ajout du jumeau numérique Maqueen (micro:bit)
This commit is contained in:
parent
94d0fae8a0
commit
4e7d264c99
BIN
Lycee/programmation_python/snt/jumeau-maqueen/carteref_maqueen.odt
Executable file
BIN
Lycee/programmation_python/snt/jumeau-maqueen/carteref_maqueen.odt
Executable file
Binary file not shown.
BIN
Lycee/programmation_python/snt/jumeau-maqueen/carteref_maqueen.pdf
Executable file
BIN
Lycee/programmation_python/snt/jumeau-maqueen/carteref_maqueen.pdf
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,13 @@
|
||||
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…
Reference in New Issue
Block a user