Skip to content

Commit 320f473

Browse files
authored
updated comment for esp32 12bit ADC
1 parent e12b8f7 commit 320f473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/utils/sensor_test/magnetic_sensors/magnetic_sensor_analog_example/magnetic_sensor_analog_example.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* MagneticSensorAnalog(uint8_t _pinAnalog, int _min, int _max)
99
* - pinAnalog - the pin that is reading the pwm from magnetic sensor
1010
* - min_raw_count - the smallest expected reading. Whilst you might expect it to be 0 it is often ~15. Getting this wrong results in a small click once per revolution
11-
* - max_raw_count - the largest value read. whilst you might expect it to be 2^10 = 1023 it is often ~ 1020
11+
* - max_raw_count - the largest value read. whilst you might expect it to be 2^10 = 1023 it is often ~ 1020. Note ESP32 will be closer to 4096 with its 12bit ADC
1212
*/
1313
MagneticSensorAnalog sensor = MagneticSensorAnalog(A1, 14, 1020);
1414

0 commit comments

Comments
 (0)