Feat(SNT): ajoute des exercices sur le microbit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-15 09:47:17 +02:00
parent 374cf37d1a
commit 3176127028
4 changed files with 50 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
from microbit import *
import time
while True:
if button_a.is_pressed():
display.show(Image.HAPPY)
time.sleep(1)
display.clear()
elif button_b.is_pressed():
display.show(Image.SAD)
time.sleep(1)
display.clear()
else:
display.show(Image.HEART)

View File

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