aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/futureHouse/futureHouse.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/futureHouse/futureHouse.py')
-rw-r--r--python/examples/futureHouse/futureHouse.py2
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']))