Skip to content

Commit 20b2b23

Browse files
committed
Typo in connection
1 parent fe28a8e commit 20b2b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/sensor/as7331_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class terrariumAS7331Sensor(terrariumI2CSensor):
1818

1919
def _load_hardware(self):
2020
i2c = board.I2C()
21-
device = as7331.AS7331(i2c, self._address[1])
21+
device = as7331.AS7331(i2c, self._address[0])
2222

2323
device.gain = as7331.GAIN_512X
2424
device.integration_time = as7331.INTEGRATION_TIME_128MS

0 commit comments

Comments
 (0)