mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
10
README.md
10
README.md
@ -169,6 +169,16 @@ Several APIs may be used to get flash chip info:
|
||||
|
||||
```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.
|
||||
|
||||
```ESP.getVcc()``` may be used to measure supply voltage. ESP needs to reconfigure the ADC
|
||||
at startup in order for this feature to be available. Add the following line to the top
|
||||
of your sketch to use ```getVcc```:
|
||||
```
|
||||
ADC_MODE(ADC_VCC);
|
||||
```
|
||||
TOUT pin has to be disconnected in this mode.
|
||||
|
||||
Note that by default ADC is configured to read from TOUT pin using ```analogRead(A0)```, and
|
||||
```ESP.getVCC()``` is not available.
|
||||
|
||||
#### OneWire (from https://www.pjrc.com/teensy/td_libs_OneWire.html) ####
|
||||
|
||||
|
Reference in New Issue
Block a user