Skip to content

crwdns342183:0crwdne342183:0

crwdns312494:0crwdne312494:0

crwdns347531:0crwdne347531:0 | MakeCode, Python | crwdns255566:0crwdne255566:0, crwdns255570:0crwdne255570:0, crwdns274476:0crwdne274476:0 | crwdns258566:0crwdne258566:0, crwdns258616:0crwdne258616:0

crwdns274884:0crwdne274884:0

crwdns274886:0crwdne274886:0

crwdns274888:0crwdne274888:0

crwdns274890:0crwdne274890:0

crwdns274892:0crwdne274892:0

crwdns274894:0crwdne274894:0

  • crwdns274896:0crwdne274896:0
  • crwdns274898:0crwdne274898:0

crwdns274900:0crwdne274900:0

  • crwdns274902:0crwdne274902:0
  • crwdns274904:0crwdne274904:0
  • crwdns274906:0crwdne274906:0

crwdns274908:0crwdne274908:0

  • crwdns274910:0crwdne274910:0
  • crwdns274912:0crwdne274912:0
  • crwdns274914:0crwdne274914:0

crwdns274916:0crwdne274916:0

1from microbit import *
2
3while True:
4    if button_a.is_pressed():
5        display.show(Image.HAPPY)
6    if button_b.is_pressed():
7        display.show(Image.SAD)
8    if pin_logo.is_touched():
9        display.show(Image.SURPRISED)

crwdns274918:0crwdne274918:0

  • crwdns274920:0crwdne274920:0
  • crwdns274922:0crwdne274922:0
  • crwdns274924:0crwdne274924:0