from module.router import App
from control.servo import Servo

servo = Servo()

app = App()
load = app.load

def use(data):
    app.load(data)

# 舵机转向角度
@app.router('scale')
def scale(arg):
    servo.scale = float(arg)

@app.router('scaleDev')
def scaleDev(arg):
    servo.setDC(arg)
from module.router import App
from control.servo import Servo

servo = Servo()

app = App()
load = app.load

def use(data):
    app.load(data)

# 舵机转向角度
@app.router('scale')
def scale(arg):
    servo.scale = float(arg)

@app.router('scaleDev')
def scaleDev(arg):
    servo.setDC(arg)