Skip to content

Instantly share code, notes, and snippets.

@jimmo
Created August 31, 2017 05:01
Show Gist options
  • Save jimmo/7b1a1cf20ea44e325c424de6e859975d to your computer and use it in GitHub Desktop.
Save jimmo/7b1a1cf20ea44e325c424de6e859975d to your computer and use it in GitHub Desktop.
from microbit import *
n = 0
while True:
if button_a.was_pressed():
n += 1
display.scroll(str(n))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment