fix(esp32): Set the maximum value of AnalogRead to 4095 (#9114)
The 12-bit MAX is 4095, not 4096.
This commit is contained in:
parent
29995eb604
commit
90bef0b80b
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ void setup() {
|
||||||
// initialize serial communication at 115200 bits per second:
|
// initialize serial communication at 115200 bits per second:
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
|
|
||||||
//set the resolution to 12 bits (0-4096)
|
//set the resolution to 12 bits (0-4095)
|
||||||
analogReadResolution(12);
|
analogReadResolution(12);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue