Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from microbit import *
- x = 0
- y = 1
- while True:
- display.set_pixel(x, y, 9)
- display.clear()
- x = 0
- y = 0
- if button_a.was_pressed():
- x = x - 1
- if x > 4:
- x = 4
- if button_b.was_pressed():
- y = y - 1
- if x > 4:
- x = 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement