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.
2 parents 66de945 + 6cedda5 commit e26b4acCopy full SHA for e26b4ac
adafruit_vl6180x.py
@@ -149,7 +149,7 @@ def read_lux(self, gain):
149
elif gain == ALS_GAIN_1_25:
150
lux /= 1.25
151
elif gain == ALS_GAIN_1_67:
152
- lux /= 1.76
+ lux /= 1.67
153
elif gain == ALS_GAIN_2_5:
154
lux /= 2.5
155
elif gain == ALS_GAIN_5:
@@ -159,7 +159,7 @@ def read_lux(self, gain):
159
elif gain == ALS_GAIN_20:
160
lux /= 20
161
elif gain == ALS_GAIN_40:
162
- lux /= 20
+ lux /= 40
163
lux *= 100
164
lux /= 100 # integration time in ms
165
return lux
0 commit comments