Mercurial > micropython-micro-bob
view mu_code/remote.py @ 0:48c36bed0f61 draft default tip
Initial commit
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Mon, 15 May 2017 16:43:11 +0200 |
| parents | |
| children |
line wrap: on
line source
import microbit import radio radio.on() while True: if microbit.button_a.was_pressed(): radio.send('step') elif microbit.button_b.was_pressed(): radio.send('stop')
