Guide
3/7/2018 SparkFun Inventor's Kit for micro:bit Experiment Guide - learn.sparkfun.com
https://learn.sparkfun.com/tutorials/sparkfun-inventors-kit-for-microbit-experiment-guide/all#introduction-to-microsoft-makecode 55/63
An accelerometer is a sensor that measures the gravitational forces pulling on it in all three dimensions of the chip’s X, Y and Z
axes.
Not only can an accelerometer measure the raw forces pulling on the chip and the object that the chip is sitting on, but it can also
detect steps, shakes and other motions that have a specific pattern. On top of that, you can use an accelerometer to simply detect
the orientation that the device is in. Did you ever wonder how your phone knows when you turn it from portrait to landscape? It is
all because of the accelerometer in your phone!