mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 06:02:05 +00:00
Update TSL2591Sensor.cpp (#6921)
Lower gain and timing to avoid saturation in bright light
This commit is contained in:
parent
b6cb0b148c
commit
f9d4fdbb52
@ -23,8 +23,8 @@ int32_t TSL2591Sensor::runOnce()
|
||||
|
||||
void TSL2591Sensor::setup()
|
||||
{
|
||||
tsl.setGain(TSL2591_GAIN_MED); // 25x gain
|
||||
tsl.setTiming(TSL2591_INTEGRATIONTIME_300MS);
|
||||
tsl.setGain(TSL2591_GAIN_LOW); // 1x gain
|
||||
tsl.setTiming(TSL2591_INTEGRATIONTIME_100MS);
|
||||
}
|
||||
|
||||
bool TSL2591Sensor::getMetrics(meshtastic_Telemetry *measurement)
|
||||
@ -41,4 +41,4 @@ bool TSL2591Sensor::getMetrics(meshtastic_Telemetry *measurement)
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user