Add initial SPIFFS library (#627)

* Add initial SPIFFS library

* Fix Deep Sleep Examples

* Missed one example
This commit is contained in:
Me No Dev
2017-09-12 11:09:59 +03:00
committed by GitHub
parent 39fb8c3044
commit 29a253ac98
8 changed files with 324 additions and 11 deletions

View File

@ -30,9 +30,9 @@ Method to print the reason by which ESP32
has been awaken from sleep
*/
void print_wakeup_reason(){
esp_deep_sleep_wakeup_cause_t wakeup_reason;
esp_sleep_wakeup_cause_t wakeup_reason;
wakeup_reason = esp_deep_sleep_get_wakeup_cause();
wakeup_reason = esp_sleep_get_wakeup_cause();
switch(wakeup_reason)
{
@ -66,7 +66,7 @@ void setup(){
Note that using internal pullups/pulldowns also requires
RTC peripherals to be turned on.
*/
esp_deep_sleep_enable_ext0_wakeup(GPIO_NUM_33,1); //1 = High, 0 = Low
esp_sleep_enable_ext0_wakeup(GPIO_NUM_33,1); //1 = High, 0 = Low
//If you were to use ext1, you would use it like
//esp_deep_sleep_enable_ext1_wakeup(BUTTON_PIN_BITMASK,ESP_EXT1_WAKEUP_ANY_HIGH);