Feat(SNT): ajoute des exercices sur le microbit
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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)
|
@@ -0,0 +1,7 @@
|
||||
from microbit import *
|
||||
import time
|
||||
|
||||
while True:
|
||||
temp = temperature()
|
||||
display.scroll(temp)
|
||||
time.sleep(1)
|
Reference in New Issue
Block a user