From ed1b106c1bd878ed2834b0f1c6fef4976985b9f6 Mon Sep 17 00:00:00 2001 From: gcohen Date: Tue, 6 Jan 2015 01:32:40 -0800 Subject: thread test --- python/examples/futureHouse/futureHouse.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'python') diff --git a/python/examples/futureHouse/futureHouse.py b/python/examples/futureHouse/futureHouse.py index c33d32d..10ad3b8 100644 --- a/python/examples/futureHouse/futureHouse.py +++ b/python/examples/futureHouse/futureHouse.py @@ -206,12 +206,12 @@ def startCycling(): for x in range(0,7) : # 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 - # try: - # thread.start_new_thread( cycleLEDs, (x,) ) - # except: - # print "Error: unable to start LED thread" + try: + thread.start_new_thread( cycleLEDs, (x,) ) + except: + print "Error: unable to start LED thread" - cycleLEDs(x) + #cycleLEDs(x) startCycling() -- cgit v1.2.3