Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ either to read voltage at ADC pin, or to read module supply voltage
(VCC).

To read external voltage applied to ADC pin, use ``analogRead(A0)``.
Input voltage range is 0 — 1.0V.
Input voltage range is 0 — 1.0V, however some breakout boards may implement voltage dividers.

To read VCC voltage, use ``ESP.getVcc()`` and ADC pin must be kept

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There also should be mentioned, that many boards (it means basicaly all boards which are not bare esp) has voltage divedr in theirs design, so ESP.getVcc() will produce totaly wrong results - possible resistor connected to A0 pin has to be removed before using this function

unconnected. Additionally, the following line has to be added to the
Expand Down