Welcome to the DFRobot blog
:
www.dfrobot.com/blog-tag-microbit.html
64
/
86
1
×
USB cable
Connection
Connect the servo to P0
Program
Goal: Fix the servo on the micro: bit, servo will keep pointing upright regardless how we tile board.
Micro: bit detects the gesture automatically through the accelerometer. Gravitation force is also a
form of acceleration ,and micro: bit can detect the gravitational force along X, Y, and Z directions,
whereas X is along the left-right direction, Y is along the front-back direction, Z is perpendicular to
the board and along the up-down direction.