From 5599810a5d462dd07ffcb4311397e01870d04557 Mon Sep 17 00:00:00 2001 From: Neradoc Date: Sun, 9 Jan 2022 18:35:16 +0100 Subject: [PATCH] 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 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' ``` https://github.com/adafruit/Adafruit_CircuitPython_DPS310/pull/15 --- adafruit_funhouse/peripherals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_funhouse/peripherals.py b/adafruit_funhouse/peripherals.py index e754428..33c9ff0 100755 --- a/adafruit_funhouse/peripherals.py +++ b/adafruit_funhouse/peripherals.py @@ -32,7 +32,7 @@ from analogio import AnalogIn import touchio import simpleio -import adafruit_dps310 +import adafruit_dps310.advanced import adafruit_ahtx0 import adafruit_dotstar @@ -83,7 +83,7 @@ def __init__(self) -> None: self._ctp.append(cap) self.i2c = board.I2C() - self._dps310 = adafruit_dps310.DPS310(self.i2c) + self._dps310 = adafruit_dps310.advanced.DPS310(self.i2c) self._aht20 = adafruit_ahtx0.AHTx0(self.i2c) # LED