diff --git a/adafruitio-adt7410/adafruit_io_adt7410.py b/adafruitio-adt7410/adafruit_io_adt7410.py index 79b9be52d..c952cd546 100644 --- a/adafruitio-adt7410/adafruit_io_adt7410.py +++ b/adafruitio-adt7410/adafruit_io_adt7410.py @@ -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)