Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/r/a/raspberrypi-experiments-HEAD/Linear_Actuator_Library/examples/spacebrew_bar_graph/spacebrew_bar_graph.py   raspberrypi-experiments(Download)
#!/usr/bin/python
 
from Adafruit_Libs.Adafruit_PWM_Servo_Driver import PWM
import time
from spacebrewInterface import spacebrew 
args = parser.parse_args()
 
pwm = PWM(0x40, debug=True)
pwm.setPWMFreq(250)
 

src/r/a/raspberrypi-experiments-HEAD/Servo_Driver_Library/examples/spacebrew_servos/servoDriver/servodriver.py   raspberrypi-experiments(Download)
# 
 
from Adafruit_Libs.Adafruit_PWM_Servo_Driver import PWM
 
class ServoDriver:
	def connect (self, address):
		if self.debug: print "[connect:ServoDriver] connecting to the servo driver at i2c address ", address
		self.pwm = PWM(address, debug = self.debug)
		self.pwm.setPWMFreq(self.freq)
 

src/r/a/raspberrypi-experiments-HEAD/Servo_Driver_Library/examples/basic_servos/servoDriver/servodriver.py   raspberrypi-experiments(Download)
# 
 
from Adafruit_Libs.Adafruit_PWM_Servo_Driver import PWM
 
class ServoDriver:
	def connect (self, address):
		if self.debug: print "[connect:ServoDriver] connecting to the servo driver at i2c address ", address
		self.pwm = PWM(address, debug = self.debug)
		self.pwm.setPWMFreq(self.freq)
 

src/r/a/raspberrypi-experiments-HEAD/Servo_Driver_Library/servoDriver/servodriver.py   raspberrypi-experiments(Download)
# 
 
from Adafruit_Libs.Adafruit_PWM_Servo_Driver import PWM
 
class ServoDriver:
	def connect (self, address):
		if self.debug: print "[connect:ServoDriver] connecting to the servo driver at i2c address ", address
		self.pwm = PWM(address, debug = self.debug)
		self.pwm.setPWMFreq(self.freq)