Skip to content

crwdns342183:0crwdne342183:0

crwdns337695:0crwdne337695:0

crwdns338145:0crwdne338145:0 | MakeCode | crwdns255562:0crwdne255562:0, crwdns255566:0crwdne255566:0, crwdns255572:0crwdne255572:0 | crwdns258480:0crwdne258480:0, crwdns258504:0crwdne258504:0, crwdns258584:0crwdne258584:0

crwdns337627:0crwdne337627:0

crwdns337629:0crwdne337629:0

crwdns337631:0crwdne337631:0

crwdns338085:0crwdne338085:0

  • crwdns338087:0crwdne338087:0
  • crwdns337641:0crwdne337641:0 crwdns337643:0crwdne337643:0
  • crwdns337645:0crwdne337645:0
  • crwdns338089:0crwdne338089:0

crwdns337639:0crwdne337639:0

  • crwdns337649:0crwdne337649:0 crwdns337651:0crwdne337651:0
  • crwdns337653:0crwdne337653:0
  • crwdns337655:0crwdne337655:0

crwdns337657:0crwdne337657:0

  • crwdns337659:0crwdne337659:0
  • crwdns337661:0crwdne337661:0
  • crwdns337663:0crwdne337663:0
  • crwdns337665:0crwdne337665:0

crwdns337667:0crwdne337667:0

crwdns337669:0crwdne337669:0

crwdns347513:0crwdne347513:0
crwdns347515:0crwdne347515:0

crwdns337675:0crwdne337675:0

1from microbit import *
2import music
3
4while True:
5    if pin1.is_touched():
6        display.show(Image.HEART)
7        music.play('c')
8    else:
9        display.clear()

crwdns337677:0crwdne337677:0

  • crwdns337679:0crwdne337679:0
  • crwdns337681:0crwdne337681:0
  • crwdns337683:0crwdne337683:0 crwdns337685:0crwdne337685:0