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
+10
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,16 @@ Several APIs may be used to get flash chip info:
169
169
170
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.
171
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