def user_hal_pins():
    comp.newpin('selectRadioX', hal.HAL_BIT, hal.HAL_IN)
    comp.newpin('selectRadioZ', hal.HAL_BIT, hal.HAL_IN)
    comp.ready()

def user_live_update():
    try:
        if comp['selectRadioX']:
            widgets.axis_x.select()
        elif comp['selectRadioZ']:
            widgets.axis_z.select()
    except Exception as e:
        print(e)
        pass
