Measure Rotation Angles

Once a script has the x and y tilt values, it can calculate rotation angles. 

For example, if you hold the micro:bit (or cyber:bot) vertically, and then rotate it 30°, the script can tell you so.  

A script can also calculate the overall direction you are tilting the micro:bit, even if you’re not holding it vertically. 

For example, if you rotate it 45° and then tilt it away from you by another 45°, the 45° angle measurement tells you which corner you are tilting it toward.  If that angle was 135°, it would mean you are tilting it toward a different corner.