Guest User

Untitled

a guest
Oct 27th, 2019
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. # Write your code here :-)
  2. from microbit import *
  3.  
  4. while True:
  5. if (button_a.is_pressed()):
  6. display.show(Image.HAPPY)
  7. elif (button_b.is_pressed()):
  8. display.show(Image.SAD)
Advertisement
Add Comment
Please, Sign In to add comment