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

@ -20,9 +20,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)
{
@ -42,7 +42,7 @@ has been awaken from sleep
void print_wakeup_touchpad(){
touch_pad_t pin;
touchPin = esp_deep_sleep_get_touchpad_wakeup_status();
touchPin = esp_sleep_get_touchpad_wakeup_status();
switch(touchPin)
{
@ -80,7 +80,7 @@ void setup(){
touchAttachInterrupt(T3, callback, Threshold);
//Configure Touchpad as wakeup source
esp_deep_sleep_enable_touchpad_wakeup();
esp_sleep_enable_touchpad_wakeup();
//Go to sleep now
Serial.println("Going to sleep now");