Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from microbit import *
- radio.on()
- while True:
- if radio.receive():
- display.show(image.DUCK)
- if accelerometer.was_gesture('shake'):
- radio.send('duck')
- sleep(20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement