Advertisement
mrsclaessens

Untitled

Jan 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. from microbit import display, button_a, Image
  2. import radio
  3. radio.on()
  4.  
  5. tardis = Image("00900:"
  6. "09990:"
  7. "09990:"
  8. "09990:"
  9. "09990")
  10.  
  11. while True:
  12. message = radio.receive()
  13. if message:
  14. display.show(tardis)
  15. if button_a.was_pressed():
  16. display.clear()
  17. radio.send("hello")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement