GithubHelp home page GithubHelp logo

Comments (5)

lovyan03 avatar lovyan03 commented on May 26, 2024 1

M5.Display.powerSaveOn() should do the same as powerHVON() in the CoreInk library.
However, it does not include a delay.
Hence, you may want to wait a few seconds after executing M5.Display.powerSaveOn() before turning off the power.

from m5unified.

lovyan03 avatar lovyan03 commented on May 26, 2024

Hello, @patfelst . Thanks for letting me know.
Perhaps executing the following command before going to sleep will solve the problem.

M5.Display.powerSaveOn();

from m5unified.

patfelst avatar patfelst commented on May 26, 2024

Thanks just tried but it doesn't seem to make any difference, but I think my current problem is I cannot turn off the CoreInk properly to reset the display. As far as I can tell M5.Power.powerOff() puts the device in deep sleep (I might be wrong) and pressing reset button on back of CoreInk just, well, resets it.

from m5unified.

lovyan03 avatar lovyan03 commented on May 26, 2024

The M5.Power.powerOff() function operates to turn off power by setting the power hold pin LOW.
CoreInk is deepSleep because the power does not turn off while USB power is being supplied due to circuit specifications.
If the USB is not connected, the power should turn off.

from m5unified.

patfelst avatar patfelst commented on May 26, 2024

thanks yes that works to power down the device - ie remove USB power and .powerOff()

I'm not sure what fixed it but I did the following and it looks ok again now:

  • added M5.Display.powerSaveOn() before entering deep sleep
  • changed the display rotation
  • played with turning the CoreInk power off (I don't think this played a part now)
  • changed display mode from M5.Display.setEpdMode(epd_mode_t::epd_text) to M5.Display.setEpdMode(epd_mode_t::epd_fast)
    2023-08-06 18 17 50
    2023-08-06 18 17 56

Before I close, what does M5.Display.powerSaveOn() actually do?

Thanks for your help!

from m5unified.

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.