From b1c1ac7a3da71d2d9c91c2044a5038f54d9f22a5 Mon Sep 17 00:00:00 2001 From: gcohen Date: Tue, 6 Jan 2015 00:41:25 -0800 Subject: thread test --- python/examples/futureHouse/futureHouse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/examples/futureHouse/futureHouse.py b/python/examples/futureHouse/futureHouse.py index 395b035..9aeb6cd 100644 --- a/python/examples/futureHouse/futureHouse.py +++ b/python/examples/futureHouse/futureHouse.py @@ -199,7 +199,8 @@ def startCycling(): # 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,) ) + t = thread.start_new_thread( cycleLEDs, (x,) ) + print t.isAlive() except: print "Error: unable to start thread" -- cgit v1.2.3