diff options
| author | gcohen | 2014-12-29 20:45:00 -0800 | 
|---|---|---|
| committer | gcohen | 2014-12-29 20:45:00 -0800 | 
| commit | 7fcc7e444f495150de6b6112b69afb35920793d4 (patch) | |
| tree | 98cedc26c68b792ea6678972c76ca219574a4dd3 /python/examples/futureHouse/futureHouse.py | |
| parent | 5e4a47536cb8970fcf828bb2075036c2cc954f0a (diff) | |
| download | pubnub-python-7fcc7e444f495150de6b6112b69afb35920793d4.tar.bz2 | |
adding PN control
Diffstat (limited to 'python/examples/futureHouse/futureHouse.py')
| -rw-r--r-- | python/examples/futureHouse/futureHouse.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/python/examples/futureHouse/futureHouse.py b/python/examples/futureHouse/futureHouse.py index a3e6fb4..ce1fc46 100644 --- a/python/examples/futureHouse/futureHouse.py +++ b/python/examples/futureHouse/futureHouse.py @@ -81,7 +81,7 @@ def setServoPulse(channel, pulse):  pwm.setPWMFreq(60)                        # Set frequency to 60 Hz  while (True):      for x in range(0,6) : -        print str(leds[x]['minPulseLength']) + " " + str(leds[x]['maxPulseLength']) + " " + str(leds[x]['waitFloor']) + " " + str(leds[x]['waitCeiling']) +        print str(x) + ": " + str(leds[x]['minPulseLength']) + " " + str(leds[x]['maxPulseLength']) + " " + str(leds[x]['waitFloor']) + " " + str(leds[x]['waitCeiling'])          # Change speed of continuous servo on channel O          pwm.setPWM(x, 0, leds[x]['minPulseLength'])          time.sleep(random.uniform(leds[x]['waitCeiling'],leds[x]['waitFloor'])) | 
