Skip to content

crwdns342183:0crwdne342183:0

crwdns312178:0crwdne312178:0

crwdns347531:0crwdne347531:0 | MakeCode, Python | crwdns255566:0crwdne255566:0, crwdns274474:0crwdne274474:0 | crwdns258616:0crwdne258616:0

crwdns274576:0crwdne274576:0

crwdns274578:0crwdne274578:0

crwdns274580:0crwdne274580:0

crwdns274582:0crwdne274582:0

crwdns274584:0crwdne274584:0

crwdns274586:0crwdne274586:0

  • crwdns274588:0crwdne274588:0
  • crwdns274590:0crwdne274590:0
  • crwdns274592:0crwdne274592:0

crwdns274594:0crwdne274594:0

  • crwdns274596:0crwdne274596:0
  • crwdns274598:0crwdne274598:0
  • crwdns274600:0crwdne274600:0

crwdns274602:0crwdne274602:0

  • crwdns274604:0crwdne274604:0
  • crwdns274606:0crwdne274606:0
  • crwdns274608:0crwdne274608:0

crwdns274610:0crwdne274610:0

1from microbit import *
2
3while True:
4    if microphone.current_event() == SoundEvent.LOUD:
5        display.show(Image.HEART)
6        sleep(200)
7    if microphone.current_event() == SoundEvent.QUIET:
8        display.show(Image.HEART_SMALL)

crwdns274612:0crwdne274612:0

  • crwdns274614:0crwdne274614:0
  • crwdns274616:0crwdne274616:0 crwdns274618:0crwdne274618:0 crwdns274620:0crwdne274620:0
  • crwdns274622:0crwdne274622:0 crwdns274624:0crwdne274624:0 crwdns274626:0crwdne274626:0
  • crwdns275418:0crwdne275418:0