Comments (5)
I've narrowed it down to something in AXP192.h and .cpp. Transplanting those files from the M5StickC library into the M5StickCPlus library fixed the issue.
from m5stickc-plus.
Hello @pcrowlz
the issue is in SetSleep()
which completely powers off everything (except for RTC) instead of keeping ESP32 powered so it can wake up from deep sleep (or light sleep).
(To be honest I never really understood the role of the SetSleep()
function or why it even exists.)
Anyhow, using the functions from M5StickC should help, as you've already figured out yourself.
For reference:
M5StickC Plus - SetSleep()
Write1Byte( 0x12 , 0x00 );
M5StickC - SetSleep()
Write1Byte(0x12, Read8bit(0x12) & 0xA1); // Disable all outputs but DCDC1
Thanks
Felix
from m5stickc-plus.
Here it is 2022 and they still have not fixed the M5stickCPlus library for deep and light sleep. Seems such critical features should have been fixed a long time ago. Makes me question support or future of this product. Anyway, I fixed it by simply moving the SetSleep(), DeepSleep(), and LightSleep() routines in AXP192.cpp from the m5stickC library to the m4stickcplus library. So far so good. Ron
from m5stickc-plus.
Thank you so much. I agree, how have they not fixed such a significant feature. I would recommend their devices, if it wasn't for the fact that I keep running into major software errors.
from m5stickc-plus.
This issue has been fixed in the new version #31
from m5stickc-plus.
Related Issues (20)
- Issues about led and ir transmitter HOT 3
- ESP IDF mapping of screen PINs HOT 1
- Esp-idf arduino component require HOT 4
- Cannot connect Wifi on Arduino Idle HOT 1
- Get battery level execution issue HOT 2
- M5Display::setBrightness will it be implemented ? HOT 3
- Free_Fonts.h missing HOT 1
- Cant Change CPU speed HOT 1
- RTC.ccp has error: 2nd "GetDate(" needs changing to "SetDate(" HOT 1
- How can we calibrate the IMU gyros?
- Wont compile HOT 6
- Broken link from M5StickC 8-Channel Servo Driver HAT doc HOT 2
- C_BACK_DRIVER.ino is wildly incomplete for a commercial example
- {Update} Can I suggest an update the to I2C tester.ino
- Infrared not functioning HOT 1
- Wrong IMU pins HOT 3
- If (Serial) always returns true HOT 3
- Black display when using setcursor() even when changing fontsizes from 1 to 7 HOT 3
- M5StickCPlus example compile error HOT 1
- Can't compile the examples, not even Hello World HOT 3
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 m5stickc-plus.