Skip to content

crwdns342183:0crwdne342183:0

crwdns312518:0crwdne312518:0

crwdns338145:0crwdne338145:0 | MakeCode, Python | crwdns255566:0crwdne255566:0, crwdns255578:0crwdne255578:0 | crwdns258472:0crwdne258472:0, crwdns258502:0crwdne258502:0, crwdns258536:0crwdne258536:0, crwdns258564:0crwdne258564:0, crwdns258600:0crwdne258600:0, crwdns293292:0crwdne293292:0, crwdns293306:0crwdne293306:0

crwdns257950:0crwdne257950:0

crwdns257952:0crwdne257952:0

crwdns257954:0crwdne257954:0

crwdns257956:0crwdne257956:0

crwdns275362:0crwdne275362:0

  • crwdns275364:0crwdne275364:0
  • crwdns275366:0crwdne275366:0

crwdns275368:0crwdne275368:0

  • crwdns275370:0crwdne275370:0 crwdns275372:0crwdne275372:0
  • crwdns275374:0crwdne275374:0
  • crwdns275376:0crwdne275376:0
  • crwdns275378:0crwdne275378:0 crwdns275380:0crwdne275380:0
  • crwdns275382:0crwdne275382:0
  • crwdns275384:0crwdne275384:0
  • crwdns275386:0crwdne275386:0 crwdns275388:0crwdne275388:0

crwdns275390:0crwdne275390:0

  • crwdns275392:0crwdne275392:0
  • crwdns275394:0crwdne275394:0
  • crwdns275396:0crwdne275396:0
  • crwdns275398:0crwdne275398:0

crwdns275400:0crwdne275400:0

1from microbit import *
2steps=0
3
4while True:
5    if accelerometer.get_y() > 1500:
6        steps += 1
7        display.scroll(steps)
8

crwdns275402:0crwdne275402:0

  • crwdns275404:0crwdne275404:0
  • crwdns275406:0crwdne275406:0
  • crwdns275408:0crwdne275408:0
  • crwdns275410:0crwdne275410:0 crwdns275412:0crwdne275412:0
crwdns275414:0crwdne275414:0