File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,11 @@ def eco2(self): # pylint: disable=invalid-name
164
164
165
165
@property
166
166
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."""
168
172
buf = bytearray (5 )
169
173
buf [0 ] = _NTC
170
174
with self .i2c_device as i2c :
Original file line number Diff line number Diff line change 6
6
i2c = busio .I2C (board .SCL , board .SDA )
7
7
ccs811 = adafruit_ccs811 .CCS811 (i2c )
8
8
9
- # Wait for the sensor to be ready and calibrate the thermistor
9
+ # Wait for the sensor to be ready
10
10
while not ccs811 .data_ready :
11
11
pass
12
- temp = ccs811 .temperature
13
- ccs811 .temp_offset = temp - 25.0
14
12
15
13
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 )
18
16
time .sleep (0.5 )
You can’t perform that action at this time.
0 commit comments