Commit b3e8f89e authored by Wim Webgang's avatar Wim Webgang

Add new file

parents
from microbit import *
iCounter = 0
while True:
if button_a.is_pressed():
iCounter = iCounter - 1
# show some reaction
display.show("-")
# give time to react and not count on too fast
sleep(100)
if button_b.is_pressed():
iCounter = iCounter + 1
# show some reaction
display.show("+")
# give time to react and not count on too fast
sleep(100)
display.show(str(iCounter))
sleep(100)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment