The micro:bit board comes with built-in accelerometer and a compass that allows you to build applications that respond to the acceleration and magnetic field of the earth.
In this chapter, you learn how to take readings from the built-in accelerometer and compass (magnetometer) to build applications using MicroPython.