Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7019b95

Browse files
committed
Merge pull request esp8266#1509 from lnxbil/patch-1
Add VCC readout
2 parents 54f3c6b + 7506055 commit 7019b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ESP8266 has a single ADC channel available to users. It may be used either to re
3636

3737
To read external voltage applied to ADC pin, use `analogRead(A0)`. Input voltage range is 0 — 1.0V.
3838

39-
To read VCC voltage, ADC pin must be kept unconnected. Additionally, the following line has to be added to the sketch:
39+
To read VCC voltage, use `ESP.getVcc()` and ADC pin must be kept unconnected. Additionally, the following line has to be added to the sketch:
4040

4141
```c++
4242
ADC_MODE(ADC_VCC);

0 commit comments

Comments
 (0)