from microbit import *
compass.calibrate()
while True:
    h = compass.heading()
    display.scroll(str(h))
