Skip to content

Commit

Permalink
TSL2561 Bugfix (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschlenstedt authored Sep 18, 2024
1 parent 8e8a69f commit ad8514c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mqtt_io/modules/sensor/tsl2561.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": 'integer',
"required": False,
"empty": False,
"default": '0x48'},
"default": '0x49'},
"integration_time": {
"required": False,
"empty": False,
Expand All @@ -30,7 +30,7 @@

class Sensor(GenericSensor):
"""
Implementation of Sensor class for the Adafruit_ADS1x15.
Implementation of Sensor class for the Adafruit_TSL2561
"""

SENSOR_SCHEMA: CerberusSchemaType = {
Expand All @@ -53,7 +53,7 @@ def setup_module(self) -> None:
self.i2c = busio.I2C(board.SCL, board.SDA)

# Convert sensor address from hex to dec
self.address = int(0x48)
self.address = int(0x49)
if 'chip_addr' in self.config:
self.address = int(self.config['chip_addr'])

Expand Down

0 comments on commit ad8514c

Please sign in to comment.