Mercurial > micropython-micro-bob
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mu_code/remote.py Mon May 15 16:43:11 2017 +0200 @@ -0,0 +1,9 @@ +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') \ No newline at end of file
