crwdns337473:0crwdne337473:0
crwdns337475:0crwdne337475:0
crwdns337477:0crwdne337477:0 crwdns337479:0crwdne337479:0
crwdns337481:0crwdne337481:0
crwdns337487:0crwdne337487:0
- crwdns337489:0crwdne337489:0
- crwdns337491:0crwdne337491:0
- crwdns337493:0crwdne337493:0 crwdns337495:0crwdne337495:0
- crwdns337497:0crwdne337497:0
- crwdns337499:0crwdne337499:0
- crwdns337501:0crwdne337501:0
crwdns337503:0crwdne337503:0
- crwdns337505:0crwdne337505:0
- crwdns337507:0crwdne337507:0
- crwdns337509:0crwdne337509:0
crwdns337513:0crwdne337513:0
1from microbit import *
2
3a = 0
4b = 0
5display.show(0)
6
7while True:
8 if button_a.is_pressed():
9 a += 1
10 display.scroll(a)
11 elif button_b.is_pressed():
12 b += 1
13 display.scroll(b)
14 if accelerometer.was_gesture('shake'):
15 display.scroll('A')
16 display.scroll(a)
17 sleep(1000)
18 display.clear()
19 sleep(2000)
20 display.scroll('B')
21 display.scroll(b)
crwdns337515:0crwdne337515:0
- crwdns337517:0crwdne337517:0
- crwdns337519:0crwdne337519:0
- crwdns337521:0crwdne337521:0