Comments (2)
Hello @RobertSmart
I think the confusion stems from what exactly you mean by sleep. I prefer to distinguish between the two ESP32 sleep modes (light sleep and deep sleep) and the device being in shutdown mode (in which everything is powered off except for the RTC).
For the ESP32 being in either light or deep sleep it still needs to be powered, else it never wakes up.
When the device is in shutdown mode (which I have a hunch is what you mean by sleep) only RTC or the power button can wake it up, but that is only true when running from battery. If USB is plugged in the device cannot go into shutdown mode - it is on all the time.
When you look at the sticker on the back of M5Paper you'll see something labelled MOS (FET). This is the main power switch and it can be activated by the power button, RTC, USB or the ESP32.
When the device is running from battery and is in shutdown mode and you press the power button that temporarily enables the MOSFET, the ESP32 boots up and then hold the enable for you so you can release the power button. The M5Paper is running until your code calls a shutdown method. (Or the battery runs out.)
However when USB is plugged in the MOSFET is enabled permanently. Or in other words, calling a shutdown method with USB plugged in has no effect - the M5Paper stays on.
So yes, the power button (jog button) can wake M5Paper when it has been put into shutdown mode on a timer, but as stated before that only works if running from battery.
The power button has two functions, it enables the MOSFET and it is also connected to a GPIO. So yes, if the M5Paper is in shutdown mode it will power it on and if M5Paper is running the power button can turn it off if (and only then) you have coded that in your application. By default the power button cannot turn off the M5Paper.
The main thing to understand is that testing shutdown mode, e.g. by calling a shutdown method can only work and be tested if M5Paper is not plugged into USB.
I hope this clears up some of your questions.
Thanks
Felix
from m5epd.
Thanks for the info Felix!
from m5epd.
Related Issues (20)
- Image2gray.py alternative version with more "features" HOT 3
- BM8563 wakeup from time HOT 3
- Random crash when drawing PNG at src/utility/pngle.c:859 HOT 1
- M5EPD_Canvas copy / assignment causes crash. HOT 2
- the shutdown() function isn't working for me. HOT 3
- textWidth return 0 if TTF loaded HOT 1
- QR Code - Core 1 panic : when size > 26. HOT 1
- Deep sleep support HOT 1
- Arduino Compile Errors HOT 1
- TextWrap doesn't seem to work HOT 1
- Please make a new release of this Library HOT 2
- Mac OS Big Sur serial issue tracked down to USB controller: NOT CP2104 but CH9102 HOT 5
- How to get/calculate battery status? HOT 1
- M5EPD.cpp error HOT 3
- Q: What is the correct BMP bitmap format? HOT 3
- M5paper stuck in - M5EPD initializing...OK - loop HOT 4
- GT911 - Interrupt disabling causes target reset HOT 1
- How to use unified library and power functions with Paper EPD HOT 3
- Cannot do simple stuff like invert text or create touch button HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m5epd.