This is a very common issue with micro:bit devices. This is not a software problem. Make sure you have calibrated your micro:bit, by using the compass button (Button B) and try again. If the problems continues to persist, please take a look at the code, which is under the sentence that marks that the code is for the compass.
This is a very common issue with micro:bit devices. This is not a software problem. Make sure you have calibrated your micro:bit, by using the compass button (Button B) and try again. If the problems continues to persist, please take a look at the code, which is under the sentence that marks that the code is for the compass.