Open
Description
Arduino board: ESP32
Hi, I just noticed a small bug on ESP32, which has 12bit ADC resolution. The driver works as expected if analogReadResolution(10);
is called before using getPoint()
. Otherwhise, as expected, it does not ;).
So maybe you could implement a check on the resolution and change the calculations (1023 is hardcoded in some lines) or simply right-shift the adc results by two if ESP32 is defined.
Cheers, Lukas
Metadata
Metadata
Assignees
Labels
No labels