#!/usr/bin/python3
import RPi.GPIO as GPIO
import pigpio
import time
 
servo = 4
 
# more info at http://abyz.me.uk/rpi/pigpio/python.html#set_servo_pulsewidth
 
pwm = pigpio.pi() 
pwm.set_mode(servo, pigpio.OUTPUT)
 
pwm.set_PWM_frequency( servo, 50 )
 
# print( "0 deg" )
# pwm.set_servo_pulsewidth( servo, 500 ) ;
# time.sleep( 5 )
#  
# print( "90 deg" )
# pwm.set_servo_pulsewidth( servo, 1500 ) ;
# time.sleep( 5 )
#  
# print( "180 deg" )
# pwm.set_servo_pulsewidth( servo, 2500 ) ;
# time.sleep( 5 )
#  
# turning off servo
pwm.set_PWM_dutycycle(servo, 0)
pwm.set_PWM_frequency( servo, 0 )
111e4bed675029114b2e2e77503a6a6ec5f6fa86
<mask token>

<mask token>
pwm.set_mode(servo, pigpio.OUTPUT)
pwm.set_PWM_frequency(servo, 50)
pwm.set_PWM_dutycycle(servo, 0)
pwm.set_PWM_frequency(servo, 0)

<mask token>
servo = 4
pwm = pigpio.pi()
pwm.set_mode(servo, pigpio.OUTPUT)
pwm.set_PWM_frequency(servo, 50)
pwm.set_PWM_dutycycle(servo, 0)
pwm.set_PWM_frequency(servo, 0)

import RPi.GPIO as GPIO
import pigpio
import time
servo = 4
pwm = pigpio.pi()
pwm.set_mode(servo, pigpio.OUTPUT)
pwm.set_PWM_frequency(servo, 50)
pwm.set_PWM_dutycycle(servo, 0)
pwm.set_PWM_frequency(servo, 0)

#!/usr/bin/python3
import RPi.GPIO as GPIO
import pigpio
import time
 
servo = 4
 
# more info at http://abyz.me.uk/rpi/pigpio/python.html#set_servo_pulsewidth
 
pwm = pigpio.pi() 
pwm.set_mode(servo, pigpio.OUTPUT)
 
pwm.set_PWM_frequency( servo, 50 )
 
# print( "0 deg" )
# pwm.set_servo_pulsewidth( servo, 500 ) ;
# time.sleep( 5 )
#  
# print( "90 deg" )
# pwm.set_servo_pulsewidth( servo, 1500 ) ;
# time.sleep( 5 )
#  
# print( "180 deg" )
# pwm.set_servo_pulsewidth( servo, 2500 ) ;
# time.sleep( 5 )
#  
# turning off servo
pwm.set_PWM_dutycycle(servo, 0)
pwm.set_PWM_frequency( servo, 0 )