X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/f0613e570ac423997b56da25d336132926ecc2ee..699a70ff4e39eb4d2fd56a4499a5fd938db7f265:/examples/all-in-one-enviro-mini-bk.py diff --git a/examples/all-in-one-enviro-mini-bk.py b/examples/all-in-one-enviro-mini-bk.py index 5a3dc82..dd0d58a 100755 --- a/examples/all-in-one-enviro-mini-bk.py +++ b/examples/all-in-one-enviro-mini-bk.py @@ -402,8 +402,10 @@ try: # schedule.every().minute.at(":45").do(updateBuffer) # schedule.every().minute.at(":50").do(updateBuffer) # schedule.every().minute.at(":55").do(updateBuffer) + pollSensors() # initial run to start up sensors + time.sleep(1) # pause to give sensors time to initialize updateBuffer() # initial run - pollSensors() # initial run + while True: proximity = ltr559.get_proximity()