from microbit import *
import radio

radio.on()
radio.config(channel = 41)
radio.config(power=7) 

display.show("S")

while True:
    
    acc_x = accelerometer.get_x()
    acc_y = accelerometer.get_y()
    acc_z = accelerometer.get_z()
    
    radio.send("Left, " + str(acc_x) + ", " + str(acc_y) + ", " + str(acc_z) + "\n")
    sleep(1000)