

from microbit import *
# Boucle infinie
while True:
# Mets la broche P0 à 0
pin0.write_digital(0)
# Attends 1/2 seconde
sleep(500)
# Mets la broche P0 à 0
pin0.write_digital(1)
# Attends 1/2 seconde
sleep(500)
(
Christophe Béasse - Mai 2019 )