From 7fcc7e444f495150de6b6112b69afb35920793d4 Mon Sep 17 00:00:00 2001 From: gcohen Date: Mon, 29 Dec 2014 20:45:00 -0800 Subject: adding PN control --- python/examples/futureHouse/futureHouse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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'])) -- cgit v1.2.3