File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ def getData (self):
232
232
#**************************************************************************/
233
233
# Constructor
234
234
#**************************************************************************/
235
- def __init__ (self , addr = 0x39 , debug = False ):
235
+ def __init__ (self , addr = TSL2561_ADDR_FLOAT , debug = False ):
236
236
self ._debug = debug
237
237
if (self ._debug == True ): print "__init__"
238
238
self ._addr = addr
@@ -331,8 +331,8 @@ def getLuminosity (self):
331
331
# This is a hack to ensure that when looping with autogain the gain can go up and down as without
332
332
# setting the gain to 1X before every reading it doesn't seem able to go from 16X
333
333
# back to 1X again. Going from 1X to 16X works fine. - IC
334
- # if (self._tsl2561AutoGain):
335
- # self.setGain(self.TSL2561_GAIN_1X)
334
+ if (self ._tsl2561AutoGain ):
335
+ self .setGain (self .TSL2561_GAIN_1X )
336
336
337
337
if (self ._debug == True ): print "getLuminosity"
338
338
valid = False
You can’t perform that action at this time.
0 commit comments