Skip to content

Commit 78a91a7

Browse files
committed
Update peripherals.py
Correct typo in pressure docstring. Added units of measure to temperature, relative humidity, and pressure.
1 parent 69acd0b commit 78a91a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_funhouse/peripherals.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,21 +212,21 @@ def light(self):
212212
@property
213213
def temperature(self):
214214
"""
215-
Return the temperature
215+
Return the temperature in degrees Celcius
216216
"""
217217
return self._aht20.temperature
218-
218+
219219
@property
220220
def relative_humidity(self):
221221
"""
222-
Return the relative humidity
222+
Return the relative humidity as a percentage (0 - 100)
223223
"""
224224
return self._aht20.relative_humidity
225225

226226
@property
227227
def pressure(self):
228228
"""
229-
Return the temperature
229+
Return the barometric pressure in hPa, or equivalently in mBar
230230
"""
231231
return self._dps310.pressure
232232

0 commit comments

Comments
 (0)