diff options
| author | gcohen | 2015-01-06 00:49:19 -0800 | 
|---|---|---|
| committer | gcohen | 2015-01-06 00:49:19 -0800 | 
| commit | 52ddcfe5fc8ed41ca8337afe287a6542463826b1 (patch) | |
| tree | d4e7ce2ebf180e6ec1385cd5f051d67b3c6a64a9 /python | |
| parent | d0ff5fe09058ab1a8a2c372c99e3108895b059b7 (diff) | |
| download | pubnub-python-52ddcfe5fc8ed41ca8337afe287a6542463826b1.tar.bz2 | |
thread test
Diffstat (limited to 'python')
| -rw-r--r-- | python/examples/futureHouse/futureHouse.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/python/examples/futureHouse/futureHouse.py b/python/examples/futureHouse/futureHouse.py index 9736b39..ba0135a 100644 --- a/python/examples/futureHouse/futureHouse.py +++ b/python/examples/futureHouse/futureHouse.py @@ -1,7 +1,7 @@  import sys  from Pubnub import Pubnub  from Adafruit_PWM_Servo_Driver import PWM -import threading +import thread  import time  import random  import Adafruit_BMP.BMP085 as BMP085 @@ -200,7 +200,7 @@ def startCycling():              # Change speed of continuous servo on channel O              try:                  #t = thread.start_new_thread( cycleLEDs, (x,) ) -                t = threading.thread( cycleLEDs, (x,) ) +                t = thread.start_new_thread( cycleLEDs, (x,) )                  print t.isAlive()              except:                  print "Error: unable to start thread" | 
