Skip to content

Commit

Permalink
fix(esp32): Set the maximum value of AnalogRead to 4095 (#9114)
Browse files Browse the repository at this point in the history
The 12-bit MAX is 4095, not 4096.
  • Loading branch information
tanakamasayuki authored Jan 16, 2024
1 parent 29995eb commit 90bef0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ESP32/examples/AnalogRead/AnalogRead.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ void setup() {
// initialize serial communication at 115200 bits per second:
Serial.begin(115200);

//set the resolution to 12 bits (0-4096)
//set the resolution to 12 bits (0-4095)
analogReadResolution(12);
}

Expand Down

0 comments on commit 90bef0b

Please sign in to comment.