# boat tilt code from microbit import * while True: reading = accelerometer.get_x() if reading > 20: display.show("L") elif reading < -20: display.show("R") else: display.show("-")