Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. dov
    3. Topics
    D
    • Continue chat with dov
    • Start new chat with dov
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by dov

    • D

      How to do partial refresh of the M5paper screen after deep sleep wakeup
      PRODUCTS • • dov

      1
      0
      Votes
      1
      Posts
      1966
      Views

      No one has replied

    • D

      How to test if the M5Paper is attached to USB power?
      PRODUCTS • • dov

      2
      0
      Votes
      2
      Posts
      2366
      Views

      D

      Answering my own question. This was trivially simple in my code. My code was doing deep sleep in the setup() function. When waking up from deep-sleep the setup function is called again. But if the device is powered by USB then deep sleep fails and we will reach the loop() function. So any special code that I want for USB power should simply be put in loop().
    • D

      M5Paper wakeup cause
      Cores • • dov

      12
      0
      Votes
      12
      Posts
      12587
      Views

      @felmue Hello Felix, No, didn't try rename rtc. What difference should it make? (In C++ rtc and RTC are different identifiers, is n't it). The reason for introduction of the own internal rtc of the ESP32 was looking for a simple way to set the system clock from the M5Paper RTC after awakening and without connecting to WiFi (this is very time- and battery-consuming). The weird thing is: syncing with NTP is rather simple in ESP32-Arduino environment, but just setting the system time equal to the 'external' BM8563 RTC-time is more complicated. There is no simple routine. I found some not so elegant way with mktime(). Another point: I discovered bugs with awakening the M5Paper when this awakening moment should be exactly at midnight: so at 24:00u or 00:00u. See a next post (if I find time to describe).