Skip to content

crwdns342183:0crwdne342183:0

crwdns312142:0crwdne312142:0

crwdns347531:0crwdne347531:0 | MakeCode, Python | crwdns255560:0crwdne255560:0, crwdns255566:0crwdne255566:0, crwdns255572:0crwdne255572:0 | crwdns258504:0crwdne258504:0, crwdns258616:0crwdne258616:0, crwdns273628:0crwdne273628:0

crwdns273718:0crwdne273718:0

crwdns273720:0crwdne273720:0

crwdns273988:0crwdne273988:0

crwdns273990:0crwdne273990:0

crwdns273728:0crwdne273728:0

crwdns273732:0crwdne273732:0

crwdns273734:0crwdne273734:0

  • crwdns273736:0crwdne273736:0
  • crwdns273992:0crwdne273992:0

crwdns273740:0crwdne273740:0

  • crwdns273742:0crwdne273742:0 crwdns273994:0crwdne273994:0
  • crwdns273746:0crwdne273746:0 crwdns273748:0crwdne273748:0
  • crwdns273750:0crwdne273750:0
  • crwdns273996:0crwdne273996:0 crwdns273998:0crwdne273998:0
  • crwdns273754:0crwdne273754:0

crwdns273756:0crwdne273756:0

  • crwdns273758:0crwdne273758:0
  • crwdns273760:0crwdne273760:0
  • crwdns273762:0crwdne273762:0
  • crwdns273764:0crwdne273764:0

crwdns273766:0crwdne273766:0

1from microbit import *
2import music
3
4while True:
5    if display.read_light_level() < 50:
6        display.show(Image(
7        "99999:"
8        "99999:"
9        "99999:"
10        "99999:"
11        "99999"))
12        music.play("A5")
13    else:
14        display.clear()
15    sleep(1000)

crwdns273768:0crwdne273768:0

  • crwdns273770:0crwdne273770:0
  • crwdns294847:0crwdne294847:0
  • crwdns273774:0crwdne273774:0