Skip to content

crwdns342183:0crwdne342183:0

crwdns347519:0crwdne347519:0

crwdns347531:0crwdne347531:0 | MakeCode, Python | crwdns255560:0crwdne255560:0, crwdns255566:0crwdne255566:0 | crwdns258502:0crwdne258502:0, crwdns258504:0crwdne258504:0, crwdns293304:0crwdne293304:0

crwdns336686:0crwdne336686:0

crwdns336688:0crwdne336688:0

crwdns336690:0crwdne336690:0 crwdns336692:0crwdne336692:0 crwdns336694:0crwdne336694:0

crwdns336696:0crwdne336696:0

crwdns336702:0crwdne336702:0

  • crwdns336704:0crwdne336704:0 crwdns336706:0crwdne336706:0
  • crwdns336708:0crwdne336708:0 crwdns336710:0crwdne336710:0
  • crwdns336712:0crwdne336712:0
  • crwdns336714:0crwdne336714:0

crwdns336716:0crwdne336716:0

  • crwdns336718:0crwdne336718:0
  • crwdns336720:0crwdne336720:0
  • crwdns336722:0crwdne336722:0

crwdns336726:0crwdne336726:0

1from microbit import *
2
3while True:
4    if display.read_light_level() > 30:
5        display.show(Image.ANGRY)
6    else:
7        display.clear()
8

crwdns336728:0crwdne336728:0

  • crwdns336730:0crwdne336730:0
  • crwdns336732:0crwdne336732:0 crwdns336734:0crwdne336734:0
  • crwdns336736:0crwdne336736:0 crwdns336738:0crwdne336738:0
  • crwdns336740:0crwdne336740:0 crwdns336742:0crwdne336742:0 crwdns336744:0crwdne336744:0