Correct Active Setter Usage

This commit is contained in:
Aadi Desai 2022-02-09 11:38:10 +00:00
parent 540c3e44ef
commit d758ed6f97
No known key found for this signature in database
GPG key ID: CFFFE425830EF4D9

View file

@ -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