fix(esp32): Set the maximum value of AnalogRead to 4095 (#9114)

The 12-bit MAX is 4095, not 4096.
This commit is contained in:
TANAKA Masayuki 2024-01-16 22:35:08 +09:00 committed by GitHub
parent 29995eb604
commit 90bef0b80b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}