libfidl.py
def _set_servo_angle(self,angle):
        """
            Moving the Servo motor to a predefined valid angle
            
            :param angle: an angle between 0 and 180
            :type angle: int
        """
        if angle >= 0 and angle <= 180:
            # you may change this depending on your servo
            duty = float(angle) /12 
            self.pulse.ChangeDutyCycle(duty)
            time.sleep(1)
            # 0 pulse means it is inactive
            self.pulse.ChangeDutyCycle(0)

            Moving the Servo motor to a predefined valid angle
            
            :param angle: an angle between 0 and 180
            :type angle: int
        
Moving the Servo motor to a predefined valid angle
Moving the Servo motor to a predefined valid angle
def _set_servo_angle(self,angle):
        if angle >= 0 and angle <= 180:
            duty = float(angle) /12 
            self.pulse.ChangeDutyCycle(duty)
            time.sleep(1)
            self.pulse.ChangeDutyCycle(0)
def _set_servo_angle ( self , angle ) : if angle >= 0 and angle <= 180 : duty = float ( angle ) / 12 self . pulse . ChangeDutyCycle ( duty ) time . sleep ( 1 ) self . pulse . ChangeDutyCycle ( 0 )
Moving the Servo motor to a predefined valid angle
Moving the Servo motor to a predefined valid angle
"""
            Moving the Servo motor to a predefined valid angle
            
            :param angle: an angle between 0 and 180
            :type angle: int
        """ # you may change this depending on your servo # 0 pulse means it is inactive
self
angle
an angle between 0 and 180
an angle between 0 and 180