Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import time
import os
STEP = 100
DELAY = 0.5
def pwm(pin, angle):
print "servo[" + str(pin) + "][" + str(angle) + "]"