Skip to content

Commit 7506055

Browse files
committed
Add VCC readout
1 parent aeb9597 commit 7506055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/reference.md

Lines changed: 1 addition & 1 deletion
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)