Skip to content

Commit 90bef0b

Browse files
fix(esp32): Set the maximum value of AnalogRead to 4095 (#9114)
The 12-bit MAX is 4095, not 4096.
1 parent 29995eb commit 90bef0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/ESP32/examples/AnalogRead/AnalogRead.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ void setup() {
22
// initialize serial communication at 115200 bits per second:
33
Serial.begin(115200);
44

5-
//set the resolution to 12 bits (0-4096)
5+
//set the resolution to 12 bits (0-4095)
66
analogReadResolution(12);
77
}
88

0 commit comments

Comments
 (0)