Skip to content

crwdns342183:0crwdne342183:0

crwdns342053:0crwdne342053:0

crwdns338145:0crwdne338145:0 | MakeCode, Python | crwdns255558:0crwdne255558:0, crwdns255564:0crwdne255564:0, crwdns255566:0crwdne255566:0, crwdns255570:0crwdne255570:0 | crwdns258474:0crwdne258474:0, crwdns258498:0crwdne258498:0, crwdns258516:0crwdne258516:0, crwdns258554:0crwdne258554:0, crwdns258616:0crwdne258616:0

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

1from microbit import *
2import radio
3radio.config(group=23)
4radio.on()
5
6while True:
7    radio.send(str(temperature()))
8    sleep(5000)
9

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