15
15
16
16
**Hardware:**
17
17
18
- * Adafruit SCD30 Breakout <https://www.adafruit.com/product/48xx>`_
18
+ * ` Adafruit SCD30 Breakout <https://www.adafruit.com/product/48xx>`_
19
19
20
20
**Software and Dependencies:**
21
21
@@ -82,7 +82,7 @@ def reset(self):
82
82
def measurement_interval (self ):
83
83
"""Sets the interval between readings in seconds. The interval value must be from 2-1800
84
84
85
- **NOTE** This value will be saved and will not be reset on boot."""
85
+ **NOTE** This value will be saved and will not be reset on boot or by callint `reset` ."""
86
86
87
87
return self ._read_register (_CMD_SET_MEASUREMENT_INTERVAL )
88
88
@@ -101,7 +101,7 @@ def self_calibration_enabled(self):
101
101
**NOTE**: Enabling self calibration will override any values set by specifying a
102
102
`forced_recalibration_reference`
103
103
104
- **NOTE** This setting will be saved and will not be reset on boot."""
104
+ **NOTE** This setting will be saved and will not be reset on boot or by callint `reset` ."""
105
105
106
106
return self ._read_register (_CMD_AUTOMATIC_SELF_CALIBRATION ) == 1
107
107
@@ -133,7 +133,7 @@ def altitude(self):
133
133
this value adjusts the CO2 measurement calculations to account for the air pressure's effect
134
134
on readings.
135
135
136
- **NOTE** This value will be stored and will not be reset on boot."""
136
+ **NOTE** This value will be stored and will not be reset on boot or by callint `reset` ."""
137
137
return self ._read_register (_CMD_SET_ALTITUDE_COMPENSATION )
138
138
139
139
@altitude .setter
@@ -143,10 +143,10 @@ def altitude(self, altitude):
143
143
@property
144
144
def temperature_offset (self ):
145
145
"""Specifies the offset to be added to the reported measurements to account for a bias in
146
- the measured signal. Value is in degrees C with a resolution of 0.01 degrees and a maximum
147
- value of 655.35
146
+ the measured signal. Value is in degrees Celcius with a resolution of 0.01 degrees and a
147
+ maximum value of 655.35 C
148
148
149
- **NOTE** This value will be saved and will not be reset on boot."""
149
+ **NOTE** This value will be saved and will not be reset on boot or by callint `reset` ."""
150
150
151
151
raw_offset = self ._read_register (_CMD_SET_TEMPERATURE_OFFSET )
152
152
return raw_offset / 100.0
@@ -155,7 +155,7 @@ def temperature_offset(self):
155
155
def temperature_offset (self , offset ):
156
156
if offset > 655.35 :
157
157
raise AttributeError (
158
- "Offset value must be less than or equal to 655.35 degrees C "
158
+ "Offset value must be less than or equal to 655.35 degrees Celcius "
159
159
)
160
160
161
161
self ._send_command (_CMD_SET_TEMPERATURE_OFFSET , int (offset * 100 ))
@@ -165,7 +165,7 @@ def forced_recalibration_reference(self):
165
165
"""Specifies the concentration of a reference source of CO2 placed in close proximity to the
166
166
sensor. The value must be from 400 to 2000 ppm.
167
167
168
- ´ **NOTE**: Specifying a forced recalibration reference will override any calibration values
168
+ **NOTE**: Specifying a forced recalibration reference will override any calibration values
169
169
set by Automatic Self Calibration"""
170
170
return self ._read_register (_CMD_SET_FORCED_RECALIBRATION_FACTOR )
171
171
@@ -177,7 +177,7 @@ def forced_recalibration_reference(self, reference_value):
177
177
def co2 (self ):
178
178
"""Returns the CO2 concentration in PPM (parts per million)
179
179
180
- Between measurements, the most recent reading will be cached and returned."""
180
+ **NOTE** Between measurements, the most recent reading will be cached and returned."""
181
181
if self .data_available :
182
182
self ._read_data ()
183
183
return self ._co2
@@ -186,7 +186,7 @@ def co2(self):
186
186
def temperature (self ):
187
187
"""Returns the current temperature in degrees celcius
188
188
189
- Between measurements, the most recent reading will be cached and returned."""
189
+ **NOTE** Between measurements, the most recent reading will be cached and returned."""
190
190
if self .data_available :
191
191
self ._read_data ()
192
192
return self ._temperature
@@ -195,7 +195,7 @@ def temperature(self):
195
195
def relative_humidity (self ):
196
196
"""Returns the current relative humidity in %rH.
197
197
198
- Between measurements, the most recent reading will be cached and returned. """
198
+ **NOTE** Between measurements, the most recent reading will be cached and returned. """
199
199
if self .data_available :
200
200
self ._read_data ()
201
201
return self ._relative_humitidy
0 commit comments