Skip to content

crwdns342183:0crwdne342183:0

crwdns359860:0crwdne359860:0

crwdns338145:0crwdne338145:0 | MakeCode, Python | crwdns255558:0crwdne255558:0, crwdns255566:0crwdne255566:0, crwdns255570:0crwdne255570:0 | crwdns258484:0crwdne258484:0, crwdns258554:0crwdne258554:0

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

1# Imports go at the top
2from microbit import *
3import radio
4radio.config(group=47)
5radio.on()
6
7while True:
8    message = radio.receive()
9    if message:
10        display.scroll(message)
11    sleep(100)

crwdns359842:0crwdne359842:0

  1. crwdns359844:0crwdne359844:0 crwdns359846:0crwdne359846:0
  2. crwdns359848:0crwdne359848:0
  3. crwdns359850:0crwdne359850:0