Skip to content

crwdns342183:0crwdne342183:0

crwdns347499:0crwdne347499:0

crwdns347531:0crwdne347531:0 | MakeCode, Python | crwdns255578:0crwdne255578:0 | crwdns258518:0crwdne258518:0

crwdns336630:0crwdne336630:0

crwdns336632:0crwdne336632:0

crwdns336634:0crwdne336634:0 crwdns336636:0crwdne336636:0

crwdns336638:0crwdne336638:0

crwdns336644:0crwdne336644:0

  • crwdns336646:0crwdne336646:0
  • crwdns336648:0crwdne336648:0 crwdns336650:0crwdne336650:0
  • crwdns336652:0crwdne336652:0 crwdns336654:0crwdne336654:0

crwdns336656:0crwdne336656:0

  • crwdns336658:0crwdne336658:0
  • crwdns336660:0crwdne336660:0
  • crwdns336662:0crwdne336662:0

crwdns336666:0crwdne336666:0

1# Imports go at the top
2from microbit import *
3
4display.show(Image.HEART)
5sleep(400)
6
7while True:
8    if accelerometer.was_gesture('right'):
9        display.show(Image.NO)
10

crwdns336668:0crwdne336668:0

  • crwdns336670:0crwdne336670:0
  • crwdns336672:0crwdne336672:0 crwdns336674:0crwdne336674:0