adafruit / Adafruit_TSL2591_Library

This is an Arduino library for the TSL2591 digital luminosity (light) sensors.
58 stars 48 forks source link

Serial.print of Thresholds with wrong values in tsl2591_interrupt.ino #11

Closed haku15 closed 6 years ago

haku15 commented 7 years ago

In the example "tsl2591_interrupt.ino" the code

`Serial.print("Interrupt Threshold Window: -"); Serial.print(TLS2591_INT_THRESHOLD_LOWER, DEC); Serial.print(" to +");

Serial.println(TLS2591_INT_THRESHOLD_LOWER, DEC);
Serial.println("");` has two minor mistakes: 1) the signs - and + should be removed, because the thresholds are from value X to value Y. 2) The second value printed should be TLS2591_INT_THRESHOLD_UPPER. The current code prints twice the lower threshold.

ladyada commented 6 years ago

thank u! fixed!