Feat(SNT): premiers exercices sur IOT
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
from microbit import *
|
||||
display.show(Image.HAPPY)
|
@@ -0,0 +1,6 @@
|
||||
from microbit import *
|
||||
import time
|
||||
|
||||
display.show(Image.HAPPY)
|
||||
time.sleep(1)
|
||||
display.show(Image.SAD)
|
@@ -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)
|
Reference in New Issue
Block a user