Feat(SNT): premiers exercices sur IOT

This commit is contained in:
2023-04-20 11:43:31 +02:00
parent 12eb277ba6
commit 1f9ee301d5
9 changed files with 205 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
from microbit import *
display.show(Image.HAPPY)

View File

@@ -0,0 +1,6 @@
from microbit import *
import time
display.show(Image.HAPPY)
time.sleep(1)
display.show(Image.SAD)

View File

@@ -0,0 +1,7 @@
from microbit import *
import time
for col in range(5):
display.set_led(col, 0, 9)
# set_led(colonne, ligne, intensité)
time.sleep(0.5)