Guide

1/22/2018 micro:bot Kit Experiment Guide - learn.sparkfun.com
https://learn.sparkfun.com/tutorials/microbot-kit-experiment-guide/all#about-the-motobit-board 66/75
Code to Note
On [Accelerometer]
The micro:bit has a built in accelerometer that measures the gravitational forces that are acting upon it. With other
microcontrollers this is sometimes hard to use and make sense of the data you receive from the sensor. But,
MakeCode has simplified that for you in an event block under the Input drawer (you will see it as On Shake ) that
allows you to pick a number of different force levels, orientations and even patterns (like shaking it). We use this to
detect a number of orientations that you can put your robot in. For example the motors will only be ON in the screen
up orientation.