We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca6095c commit b6a4f09Copy full SHA for b6a4f09
Adafruit_TSL2561/Adafruit_TSL2561.py
@@ -484,7 +484,7 @@ def calculateLux(self):
484
# Calculates an averaged Lux value over default 30 samples
485
#**************************************************************************/
486
def calculateAvgLux(self, testavg=int(30)):
487
- self.setGain(self.TSL2561_GAIN_16X)
+ self.setGain(self.TSL2561_GAIN_1X)
488
# Set initial vars
489
count = 0
490
luxavgtotal = 0
@@ -500,7 +500,7 @@ def calculateAvgLux(self, testavg=int(30)):
500
501
if __name__ == "__main__":
502
LightSensor = Adafruit_TSL2651()
503
-# LightSensor.enableAutoGain(True)
+ LightSensor.enableAutoGain(True)
504
505
# See if "loop" has been passed as an arg.
506
try:
0 commit comments