Skip to content

crwdns342183:0crwdne342183:0

crwdns312206:0crwdne312206:0

crwdns338145:0crwdne338145:0 | MakeCode, Python | crwdns255558:0crwdne255558:0, crwdns255566:0crwdne255566:0 | crwdns258498:0crwdne258498:0, crwdns258554:0crwdne258554:0

crwdns256614:0crwdne256614:0

crwdns256616:0crwdne256616:0

crwdns256618:0crwdne256618:0

crwdns256620:0crwdne256620:0

crwdns256622:0crwdne256622:0

  • crwdns256624:0crwdne256624:0
  • crwdns256626:0crwdne256626:0 crwdns256628:0crwdne256628:0 crwdns256630:0crwdne256630:0
  • crwdns256632:0crwdne256632:0 crwdns256634:0crwdne256634:0 crwdns256636:0crwdne256636:0 crwdns256638:0crwdne256638:0
  • crwdns256640:0crwdne256640:0 crwdns256642:0crwdne256642:0

crwdns256644:0crwdne256644:0

  • crwdns256646:0crwdne256646:0
  • crwdns256648:0crwdne256648:0
  • crwdns256650:0crwdne256650:0

crwdns256652:0crwdne256652:0

crwdns256654:0crwdne256654:0

1from microbit import *
2import radio
3radio.config(group=1, power=1)
4radio.on()
5id = '1' # change this number for each beacon
6display.show(id)
7sleep(2000)
8display.clear()
9
10while True:
11    radio.send(id)
12    sleep(200)
13

crwdns256656:0crwdne256656:0

1from microbit import *
2import radio
3radio.config(group=1)
4radio.on()
5
6while True:
7    message = radio.receive()
8    if message:
9        display.show(message)
10        sleep(200)
11        display.clear()
12

crwdns256658:0crwdne256658:0

  • crwdns256660:0crwdne256660:0 crwdns256662:0crwdne256662:0
  • crwdns256664:0crwdne256664:0
  • crwdns256666:0crwdne256666:0