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