Arduino board: ESP32-S2 (not relevant, issue is with all boards)
Arduino IDE version (found in Arduino -> About Arduino menu): version 2.2.1 (not relevant, issue is with all IDE's)
List the steps to reproduce the problem below (if possible attach a sketch or
copy the sketch code in too): LIST REPRO STEPS BELOW
The function float Adafruit_ADS1X15::computeVolts(int16_t counts) does what it says: it computes the Volts. However, in the examples the value is presented as if it where mV, see e.g. here.
A quick fix would be to call computeVolts(1000 * results) however since the function parameter is just an int16_t it will quickly overflow. I would suggest adding a new (trivial) function computeMilliVolts(int16_t counts) and call that function instead in the examples.
Arduino board: ESP32-S2 (not relevant, issue is with all boards)
Arduino IDE version (found in Arduino -> About Arduino menu): version 2.2.1 (not relevant, issue is with all IDE's)
List the steps to reproduce the problem below (if possible attach a sketch or copy the sketch code in too): LIST REPRO STEPS BELOW
The function
float Adafruit_ADS1X15::computeVolts(int16_t counts)
does what it says: it computes the Volts. However, in the examples the value is presented as if it where mV, see e.g. here.A quick fix would be to call
computeVolts(1000 * results)
however since the function parameter is just anint16_t
it will quickly overflow. I would suggest adding a new (trivial) functioncomputeMilliVolts(int16_t counts)
and call that function instead in the examples.