def changeDeg(pin, newDegree):
    maxChange = 0
    pinSize = len(pin)
    for i in range(0, pinSize):
        maxChange = max(abs((cur[pin[i]] - newDegree[i])), maxChange)
    for deg in range(0, maxChange, 5):
        for i in range(0, pinSize):
            if (cur[pin[i]] < newDegree[i]):
                cur[pin[i]] += 5
            elif (cur[pin[i]] > newDegree[i]):
                cur[pin[i]] -= 5
        for i in range(0, pinSize):
            h.servo[pin[i]].angle = cur[pin[i]]
        time.sleep(0.05)
def changeDeg(pin, newDegree):
    maxChange = 0
    pinSize = len(pin)
    for i in range(0, pinSize):
        maxChange = max(abs((cur[pin[i]] - newDegree[i])), maxChange)
    for deg in range(0, maxChange, 5):
        for i in range(0, pinSize):
            if (cur[pin[i]] < newDegree[i]):
                cur[pin[i]] += 5
            elif (cur[pin[i]] > newDegree[i]):
                cur[pin[i]] -= 5
        for i in range(0, pinSize):
            h.servo[pin[i]].angle = cur[pin[i]]
        time.sleep(0.05)