Skip to content

Commit 209e467

Browse files
authored
doc: analogRead must not be called to frequently with WiFi is on (#7981)
1 parent 1cc6960 commit 209e467

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/reference.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,17 @@ pin, except GPIO16. Standard Arduino interrupt types are supported:
7474
Analog input
7575
------------
7676

77+
**NOTE:**
78+
Calling ``analogRead()`` too frequently causes WiFi to stop working. When
79+
WiFi is under operation, ``analogRead()`` result may be cached for at least
80+
5ms between effective calls.
81+
7782
ESP8266 has a single ADC channel available to users. It may be used
7883
either to read voltage at ADC pin, or to read module supply voltage
7984
(VCC).
8085

8186
To read external voltage applied to ADC pin, use ``analogRead(A0)``.
82-
Input voltage range of bare ESP8266 is 0 — 1.0V, however some many
87+
Input voltage range of bare ESP8266 is 0 — 1.0V, however some
8388
boards may implement voltage dividers. To be on the safe side, <1.0V
8489
can be tested. If e.g. 0.5V delivers values around ~512, then maximum
8590
voltage is very likely to be 1.0V and 3.3V may harm the ESP8266.

0 commit comments

Comments
 (0)