GithubHelp home page GithubHelp logo

Comments (5)

pcrowlz avatar pcrowlz commented on August 15, 2024

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.

felmue avatar felmue commented on August 15, 2024

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.

rlsharp avatar rlsharp commented on August 15, 2024

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.

Knight13th avatar Knight13th commented on August 15, 2024

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.

Tinyu-Zhao avatar Tinyu-Zhao commented on August 15, 2024

This issue has been fixed in the new version #31

from m5stickc-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.