Feat: ajoute boucle while pour Python
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-09-09 09:49:46 +02:00
parent 7cd6045e5a
commit a48e94099c
5 changed files with 71 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
from microbit import *
import time
while True:
temp = temperature()
display.scroll(temp)
time.sleep(1)

View File

@@ -0,0 +1,12 @@
from microbit import *
import time
limite = 10
tour = 0
while tour < limite:
display.scroll(tour)
tour = tour + 1
time.sleep(0.5)
display.scroll("Fin")