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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/i/piface-HEAD/python/demos/twitter_chicken/raspberry_pi_farm.py   piface(Download)
    def __init__(self):
        pfio.Relay.__init__(self, 1) # chicken is on pin 
        self.relay_pin = 1
        self.voice_pitch = 50 # 0-99
        self.voice_speed = 160 # words per min

src/p/i/piface-HEAD/python/demos/racingpi/game.py   piface(Download)
    def __init__(self, racing_car_number):
        # racing car number directly translates to the relay number
        pfio.Relay.__init__(self, racing_car_number)
 
    def drive(self, drive_period):