diff options
| author | gcohen | 2015-01-06 01:32:40 -0800 |
|---|---|---|
| committer | gcohen | 2015-01-06 01:32:40 -0800 |
| commit | ed1b106c1bd878ed2834b0f1c6fef4976985b9f6 (patch) | |
| tree | 1acc7aff23ebb8377a4453e120bbff5b8b89f579 /python/examples/futureHouse | |
| parent | 27cae9ea74b9a76a118fe1e96734ed7f145d5940 (diff) | |
| download | pubnub-python-ed1b106c1bd878ed2834b0f1c6fef4976985b9f6.tar.bz2 | |
thread test
Diffstat (limited to 'python/examples/futureHouse')
| -rw-r--r-- | python/examples/futureHouse/futureHouse.py | 10 |
1 files changed, 5 insertions, 5 deletions
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() |
