crwdns359786:0crwdne359786:0
crwdns359788:0crwdne359788:0
crwdns359790:0crwdne359790:0
crwdns359796:0crwdne359796:0
crwdns359798:0crwdne359798:0
crwdns359800:0crwdne359800:0
- crwdns359802:0crwdne359802:0 crwdns359804:0crwdne359804:0
- crwdns359806:0crwdne359806:0
- crwdns359808:0crwdne359808:0
- crwdns359810:0crwdne359810:0 crwdns359812:0crwdne359812:0 crwdns359814:0crwdne359814:0
- crwdns359816:0crwdne359816:0
- crwdns359818:0crwdne359818:0 crwdns359820:0crwdne359820:0
- crwdns359822:0crwdne359822:0
- crwdns359824:0crwdne359824:0 crwdns359826:0crwdne359826:0
crwdns359828:0crwdne359828:0
- crwdns359830:0crwdne359830:0
- crwdns359832:0crwdne359832:0
- crwdns359834:0crwdne359834:0
crwdns359836:0crwdne359836:0
crwdns359838:0crwdne359838:0
1# Imports go at the top
2from microbit import *
3import radio
4radio.config(group=47)
5radio.on()
6
7while True:
8 if button_a.is_pressed() and button_b.is_pressed():
9 radio.send('HOT!')
10 display.scroll('HOT!')
11 elif button_a.is_pressed():
12 radio.send('warmer')
13 display.scroll('warmer')
14 elif button_b.is_pressed():
15 radio.send('colder')
16 display.scroll('colder')
17 sleep(100)
crwdns359840:0crwdne359840:0
crwdns359842:0crwdne359842:0
- crwdns359844:0crwdne359844:0 crwdns359846:0crwdne359846:0
- crwdns359848:0crwdne359848:0
- crwdns359850:0crwdne359850:0
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.