#MonthOfMaking Day 4

#MonthOfMaking Day 4

March is all about MAKING!!

I have decided to take on the challenge of making a 5-minute micro:bit make every day throughout March.

Day04 – Step Counter

Today I have decided to make a step counter.

Everytime the micro:bit is shaken it increases the number of steps by 1. Lets get coding!

Python Code

steps = None
from microbit import *
steps = 0
while True:
if accelerometer. is_gesture('shake')
steps += 1

EduBlocks Code

EduBlocks code

MakeCode Code



Final Words

Come back Tomorrow for another fun 5 minute micro:bit make