crwdns342059:0crwdne342059:0
crwdns342061:0crwdne342061:0
crwdns342063:0crwdne342063:0
crwdns347485:0crwdne347485:0
crwdns347489:0crwdne347489:0
crwdns342073:0crwdne342073:0
- crwdns342075:0crwdne342075:0
- crwdns342077:0crwdne342077:0
- crwdns342079:0crwdne342079:0
- crwdns342081:0crwdne342081:0
- crwdns342083:0crwdne342083:0
- crwdns342085:0crwdne342085:0
crwdns342087:0crwdne342087:0
- crwdns342089:0crwdne342089:0
- crwdns342091:0crwdne342091:0
- crwdns342093:0crwdne342093:0
- crwdns342095:0crwdne342095:0
crwdns342097:0crwdne342097:0
crwdns342099:0crwdne342099:0
crwdns342101:0crwdne342101:0
1from microbit import *
2import radio
3radio.config(group=23)
4radio.on()
5outdoorTemp = '-'
6
7while True:
8 message = radio.receive()
9 if message:
10 outdoorTemp = message
11 if button_a.was_pressed():
12 display.scroll(str(temperature()))
13 if button_b.was_pressed():
14 display.scroll(outdoorTemp)
15
crwdns342103:0crwdne342103:0
- crwdns342105:0crwdne342105:0
- crwdns342107:0crwdne342107:0
- crwdns342109:0crwdne342109:0
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.