Skip to content

Commit 5599810

Browse files
authored
Update the import of adafruit_dps310 to latest
This fixes this after the latest DPS310 release. I assumed we want the advanced by default on the Fun House. ```py Traceback (most recent call last): File "code.py", line 13, in <module> File "adafruit_funhouse/__init__.py", line 110, in __init__ File "adafruit_funhouse/peripherals.py", line 86, in __init__ AttributeError: 'module' object has no attribute 'DPS310' ``` adafruit/Adafruit_CircuitPython_DPS310#15
1 parent 264371b commit 5599810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_funhouse/peripherals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from analogio import AnalogIn
3333
import touchio
3434
import simpleio
35-
import adafruit_dps310
35+
import adafruit_dps310.advanced
3636
import adafruit_ahtx0
3737
import adafruit_dotstar
3838

@@ -83,7 +83,7 @@ def __init__(self) -> None:
8383
self._ctp.append(cap)
8484

8585
self.i2c = board.I2C()
86-
self._dps310 = adafruit_dps310.DPS310(self.i2c)
86+
self._dps310 = adafruit_dps310.advanced.DPS310(self.i2c)
8787
self._aht20 = adafruit_ahtx0.AHTx0(self.i2c)
8888

8989
# LED

0 commit comments

Comments
 (0)