You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3
Original file line number
Diff line number
Diff line change
@@ -153,9 +153,7 @@ APIs related to deep sleep and watchdog timer are available in the ```ESP``` obj
153
153
154
154
```ESP.deepSleep(microseconds, mode)``` will put the chip into deep sleep. ```mode``` is one of ```WAKE_RF_DEFAULT```, ```WAKE_RFCAL```, ```WAKE_NO_RFCAL```, ```WAKE_RF_DISABLED```. (GPIO16 needs to be tied to RST to wake from deepSleep.)
155
155
156
-
```ESP.wdtEnable()```, ```ESP.wdtDisable()```, and ```ESP.wdtFeed()``` provide some control over the watchdog timer.
157
-
158
-
```ESP.reset()``` resets the CPU.
156
+
```ESP.restart()``` restarts the CPU.
159
157
160
158
```ESP.getFreeHeap()``` returns the free heap size.
161
159
@@ -171,6 +169,16 @@ Several APIs may be used to get flash chip info:
171
169
172
170
```ESP.getCycleCount()``` returns the cpu instruction cycle count since start as an unsigned 32-bit. This is useful for accurate timing of very short actions like bit banging.
173
171
172
+
```ESP.getVcc()``` may be used to measure supply voltage. ESP needs to reconfigure the ADC
173
+
at startup in order for this feature to be available. Add the following line to the top
174
+
of your sketch to use ```getVcc```:
175
+
```
176
+
ADC_MODE(ADC_VCC);
177
+
```
178
+
TOUT pin has to be disconnected in this mode.
179
+
180
+
Note that by default ADC is configured to read from TOUT pin using ```analogRead(A0)```, and
0 commit comments