Skip to content

Commit 82799e8

Browse files
committed
Update peripherals.py
Added temperature_alt property to grab temperature data from onboard DPS310 temperature and pressure chip rather than default AHT20 temperature and humidity chip.
1 parent 78a91a7 commit 82799e8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

adafruit_funhouse/peripherals.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,15 @@ def temperature(self):
215215
Return the temperature in degrees Celcius
216216
"""
217217
return self._aht20.temperature
218-
218+
219+
@property
220+
def temperature_alt(self):
221+
"""
222+
Return the temperature in degrees Celcius
223+
using DPS310 sensor
224+
"""
225+
return self._dps310.temperature
226+
219227
@property
220228
def relative_humidity(self):
221229
"""

0 commit comments

Comments
 (0)