Raspberry Pi, Python Servo Control python The following python code, along with Adafruit PWM and Servo Kernel allows you to control a servo with the following syntax: python servo.py [degree] [degree] [degree]... Example rotation to 180 and back to 0 twice: python servo.py 0 180 0 180 0