def write(self, angle):
    """ Set the angle ofthe servo in degrees. """
    if (angle < 0): angle = 0
    if(angle > 180): angle = 180
    value = (self.max_ms-self.min_ms)/180.0 * angle + self.min_ms
    analogWrite(self.pwm_pin, value, self.period_ms)
    self.angle= angle
dataset/ETHPy150Open graycatlabs/PyBBIO/bbio/libraries/Servo/Servo.py/Servo.write/original