adding config. delay
This commit is contained in:
parent
b68c95b3ec
commit
6d9b570472
1 changed files with 6 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
==================================
|
||||
Example of sending temperature
|
||||
values to an Adafruit IO feed using
|
||||
an ADT7410
|
||||
an ADT7410 breakout.
|
||||
|
||||
Dependencies:
|
||||
- Adafruit_Blinka
|
||||
|
|
@ -31,6 +31,9 @@ import board
|
|||
import busio
|
||||
import digitalio
|
||||
|
||||
# Delay between sensor reads, in seconds
|
||||
DELAY_SECONDS = 30
|
||||
|
||||
# Set to your Adafruit IO key.
|
||||
# Remember, your key is a secret,
|
||||
# so make sure not to publish it when you publish this code!
|
||||
|
|
@ -91,5 +94,5 @@ while True:
|
|||
disp.image(image)
|
||||
disp.show()
|
||||
|
||||
# Delay for 5 seconds to avoid timeout from adafruit io
|
||||
time.sleep(5)
|
||||
# Delay for DELAY_SECONDS seconds to avoid timeout from adafruit io
|
||||
time.sleep(DELAY_SECONDS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue