From d758ed6f97186ba23ba2f162f5c044d34d645721 Mon Sep 17 00:00:00 2001 From: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Wed, 9 Feb 2022 11:38:10 +0000 Subject: [PATCH] Correct Active Setter Usage --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index b3717e1..94e2c6a 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,7 @@ print(temphumsensor.humidity) # read the humidity and print print("========== Testing TMP006 ==========") irtempsensor = tmp006.TMP006(bus, 0x41, tmp006.SAMPLERATE_4HZ) # set up TMP006 sensor -irtempsensor.active(1) # turn on the sensor +irtempsensor.active = 1 # turn on the sensor sleep(1) # wait for sensor to turn on print(irtempsensor.manID) # read the manufacturer ID and print print(irtempsensor.devID) # read the device ID and print