microbit.compass.calibrate
Appearance
Called automatically when the user attempts to fetch readings when the compass is uncalibrated. Can also be called manually by the user before use to set up the compass. This is a blocking method, and will only return once calibration is complete.
Function
Synopsis
microbit.compass.calibrate()
Arguments
None.
Returns
A boolean value. True on success.