Простой код:

Код:
def on_forever():
    #Получаем позицию по x 
    x = input.acceleration(Dimension.X)
    #Получаем позицию по y
    y = input.acceleration(Dimension.Y)

    if x <= -1023:
      basic.show_arrow(ArrowNames.WEST)
    elif x >= 1023:
      basic.show_arrow(ArrowNames.EAST)

    if y <= -1023:        
       basic.show_arrow(ArrowNames.NORTH)
    elif y >= 1023:
       basic.show_arrow(ArrowNames.SOUTH)

        
basic.forever(on_forever)

Результат см. тут:
https://cloud.mail.ru/public/4Gf7/4Gn4Ksvu4