Skip to content

Commit 5ba3a59

Browse files
committed
Update readme
[ci skip]
1 parent e3ce37b commit 5ba3a59

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ Before using I2C, pins for SDA and SCL need to be set by calling
108108
An initial SPI support for the HSPI interface (GPIO12-15) was implemented by [Sermus](https://github.com/Sermus).
109109
The implementation supports the entire Arduino SPI API including transactions, except setting phase and polarity as it's unclear how to set them in ESP8266 yet.
110110

111+
#### ESP-specific APIs ####
112+
113+
APIs related to deep sleep and watchdog timer are available in the ```ESP``` object.
114+
115+
```ESP.deepSleep(microseconds, mode)``` will put the chip into deep sleep. ```mode``` is one of ```WAKE_DEFAULT```, ```WAKE_RFCAL```, ```WAKE_NO_RFCAL```, ```WAKE_RF_DISABLED```.
116+
117+
```ESP.wdtEnable()```, ```ESP.wdtDisable()```, and ```ESP.wdtFeed()``` provide some control over the watchdog timer.
118+
111119
#### OneWire (from https://www.pjrc.com/teensy/td_libs_OneWire.html) ####
112120

113121
Library was adapted to work with ESP8266 by including register definitions into OneWire.h

0 commit comments

Comments
 (0)