Skip to content

crwdns342183:0crwdne342183:0

crwdns312042:0crwdne312042:0

crwdns347531:0crwdne347531:0 | MakeCode, Python | crwdns255562:0crwdne255562:0, crwdns255570:0crwdne255570:0, crwdns255572:0crwdne255572:0, crwdns274472:0crwdne274472:0 | crwdns258482:0crwdne258482:0, crwdns258552:0crwdne258552:0, crwdns258616:0crwdne258616:0

crwdns255830:0crwdne255830:0

crwdns255832:0crwdne255832:0

crwdns255834:0crwdne255834:0

crwdns259202:0crwdne259202:0

crwdns274072:0crwdne274072:0

crwdns274074:0crwdne274074:0

crwdns259208:0crwdne259208:0

  • crwdns259210:0crwdne259210:0
  • crwdns354335:0crwdne354335:0
  • crwdns354337:0crwdne354337:0 crwdns354339:0crwdne354339:0
crwdns354341:0crwdne354341:0
  • crwdns354343:0crwdne354343:0
  • crwdns354345:0crwdne354345:0

crwdns259222:0crwdne259222:0

  • crwdns259224:0crwdne259224:0
  • crwdns259226:0crwdne259226:0
  • crwdns259228:0crwdne259228:0
  • crwdns354347:0crwdne354347:0

crwdns354349:0crwdne354349:0

1from microbit import *
2import music
3
4while True:
5    if button_a.was_pressed():
6        music.play(music.ODE)
7    if button_b.was_pressed():
8        music.play(music.BLUES)
9

crwdns354351:0crwdne354351:0

  • crwdns354353:0crwdne354353:0 crwdns354355:0crwdne354355:0 crwdns354357:0crwdne354357:0
  • crwdns354359:0crwdne354359:0
  • crwdns354361:0crwdne354361:0