Skip to content

Instantly share code, notes, and snippets.

@jimmo
Created August 31, 2017 05:02
Show Gist options
  • Save jimmo/798d9becbd09667d03cf287f3d86e1cb to your computer and use it in GitHub Desktop.
Save jimmo/798d9becbd09667d03cf287f3d86e1cb 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), wait=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment