Calibrate Compass
Runs the compass calibration sequence.
input.calibrateCompass();
Calibration
The calibration will ask you to draw a circle or fill the LED screen by tilting the micro:bit.
If you are calibrating or using the compass near metal, it might confuse the micro:bit.
Example
This example runs the calibration when the user presses A+B buttons.
input.onButtonPressed(Button.AB, () => {
input.calibrateCompass();
})