Skip to content

Commit ee5774d

Browse files
committed
deprecate temperature
1 parent 8511972 commit ee5774d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

adafruit_ccs811.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ def eco2(self): # pylint: disable=invalid-name
164164

165165
@property
166166
def temperature(self):
167-
"""Temperature based on optional thermistor in Celsius."""
167+
"""
168+
.. deprecated:: 1.1.5
169+
Hardware support removed by vendor
170+
171+
Temperature based on optional thermistor in Celsius."""
168172
buf = bytearray(5)
169173
buf[0] = _NTC
170174
with self.i2c_device as i2c:

examples/ccs811_simpletest.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
i2c = busio.I2C(board.SCL, board.SDA)
77
ccs811 = adafruit_ccs811.CCS811(i2c)
88

9-
# Wait for the sensor to be ready and calibrate the thermistor
9+
# Wait for the sensor to be ready
1010
while not ccs811.data_ready:
1111
pass
12-
temp = ccs811.temperature
13-
ccs811.temp_offset = temp - 25.0
1412

1513
while True:
16-
print("CO2: {} PPM, TVOC: {} PPM, Temp: {} C"
17-
.format(ccs811.eco2, ccs811.tvoc, ccs811.temperature))
14+
print("CO2: {} PPM, TVOC: {} PPM"
15+
.format(ccs811.eco2, ccs811.tvoc)
1816
time.sleep(0.5)

0 commit comments

Comments
 (0)