Skip to content

Commit 81b3f1c

Browse files
committed
Fixed broken __init__ params
1 parent 9515601 commit 81b3f1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Adafruit_TSL2561/Adafruit_TSL2561.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,21 +233,21 @@ def get_data(self):
233233
self.disable()
234234
logging.debug('getData_end"')
235235

236-
def __init__(self, address, addr=TSL2561_ADDR_FLOAT, debug=False):
236+
def __init__(self, address=TSL2561_ADDR_FLOAT, debug=False):
237237
"""
238238
Constructor
239239
240-
:param addr: I2C address of TSL2561, defaults to 0x39
240+
:param address: I2C address of TSL2561, defaults to 0x39
241241
:param debug: Turn on debugging, defaults to False
242242
"""
243243
self._debug = debug
244244
logging.debug('__init__"')
245-
self._addr = addr
245+
self._address = address
246246
self._tsl2561Initialised = False
247247
self._tsl2561AutoGain = False
248248
self._tsl2561IntegrationTime = self.TSL2561_INTEGRATIONTIME_13MS
249249
self._tsl2561Gain = self.TSL2561_GAIN_1X
250-
self._i2c = Adafruit_I2C(self._addr)
250+
self._i2c = Adafruit_I2C(self._address)
251251
self._luminosity = 0
252252
self._broadband = 0
253253
self._ir = 0

0 commit comments

Comments
 (0)