Your Turn: All Together Now
You can combine the xy calculated angle from Measuring Rotation Angles with the z angle introduced here to get a complete picture of how the micro:bit is oriented in space.
Example project: z_axis_and_xy_axis_angles_your_turn
- Enter z_axis_and_xy_axis_angles_your_turn.
- Flash it into the micro:bit.
- Open the terminal and try each orientation shown in the pictures above.
- How close can you get to the angles shown in the pictures’ terminal?