adafruit / Adafruit_CircuitPython_VEML7700

CircuitPython driver for VEML7700 high precision I2C ambient light sensor
MIT License
11 stars 8 forks source link

Recommend setting initial light gain to lowest #27

Closed standsi closed 8 months ago

standsi commented 12 months ago

Please review the PR I submitted, it explains this issue. While the learn guide could be changed to say default is 1x it leaves the sensor open to overflow if a very bright light source is incident when the class is initialized. While this could be a breaking change for code that worked because of the higher gain, it would only affect the raw light value. The lux calculation should be the same as before.