Skip to content

crwdns342183:0crwdne342183:0

crwdns312418:0crwdne312418:0

crwdns347531:0crwdne347531:0 | MakeCode, Python | crwdns255566:0crwdne255566:0, crwdns255572:0crwdne255572:0, crwdns255578:0crwdne255578:0 | crwdns258502:0crwdne258502:0, crwdns258616:0crwdne258616:0

crwdns260182:0crwdne260182:0

crwdns260184:0crwdne260184:0

crwdns260186:0crwdne260186:0

crwdns260188:0crwdne260188:0

crwdns274294:0crwdne274294:0

crwdns274296:0crwdne274296:0

crwdns260194:0crwdne260194:0

  • crwdns260196:0crwdne260196:0 crwdns260198:0crwdne260198:0
  • crwdns260200:0crwdne260200:0 crwdns260202:0crwdne260202:0
  • crwdns260204:0crwdne260204:0 crwdns260206:0crwdne260206:0 crwdns260208:0crwdne260208:0
  • crwdns260210:0crwdne260210:0

crwdns260212:0crwdne260212:0

  • crwdns260214:0crwdne260214:0
  • crwdns260216:0crwdne260216:0
  • crwdns260218:0crwdne260218:0
  • crwdns260220:0crwdne260220:0

crwdns260222:0crwdne260222:0

1from microbit import *
2import music
3
4while True:
5    if accelerometer.was_gesture('shake'):
6        display.show(Image.ANGRY)
7        music.play(["G4:4", "A4", "B4", "B4", "B4", "A4", "G4", "F4"])
8        

crwdns260224:0crwdne260224:0

  • crwdns347501:0crwdne347501:0
  • crwdns260228:0crwdne260228:0
  • crwdns260230:0crwdne260230:0