
"""


Auteur: anonyme

Interface: microbit

Nom du projet: Utiliser les boutons

Description: <span class="tooltip-title">Utiliser les boutons</span><span class="tooltip-description">No-description</span>

Toolbox: vittascience

Mode: mixed

Blocks: <xml xmlns="https://developers.google.com/blockly/xml"><block type="on_start" id="G[=T#8yqB70`NFgYq}GP" deletable="false" x="-63" y="37"><statement name="DO"><block type="io_onButtonPressed" id="PUQ-cDU$6PNDNb8OoE@("><field name="BUTTON">a</field><field name="STATE">is_</field><statement name="DO"><block type="show_icon" id="J%326ba0{HZd/$G_Ru`%"><field name="ICON">PITCHFORK</field><next><block type="io_pause" id="Z0=qN{EN((@Y]j8pFX/p"><field name="UNIT">SECOND</field><value name="TIME"><shadow type="math_number" id="@WQcMJ3$@;V_|g9O.:5z"><field name="NUM">2</field></shadow></value><next><block type="clear" id="T5`::K]Fz:+V-p*i;:};"></block></next></block></next></block></statement></block></statement></block></xml>

Projet généré par Vittascience.

Ce fichier contient le code textuel ainsi que le code blocs. Il peut être importé de nouveau

sur l'interface http://vittascience.com/microbit


"""

from microbit import *
import utime

if button_a.is_pressed():
  display.show(Image.PITCHFORK)
  utime.sleep(2)
  display.clear()
