Skip to content

Commit d733c33

Browse files
committed
proposed change v1
1 parent a53ec45 commit d733c33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_veml7700.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ class VEML7700:
193193

194194
def __init__(self, i2c_bus: I2C, address: int = 0x10) -> None:
195195
self.i2c_device = i2cdevice.I2CDevice(i2c_bus, address)
196+
# Set lowest gain to keep from overflow on init if bright light
197+
self.light_gain=self.ALS_GAIN_1_8
196198
for _ in range(3):
197199
try:
198200
self.light_shutdown = False # Enable the ambient light sensor

0 commit comments

Comments
 (0)