🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Paper - Flickering when updating screen

    FAQS
    3
    4
    5.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BBulMushroom
      last edited by

      I tried to display some text or graphics with both Arduino IDE and M5Flow(python).
      When using an Arduino, it can update the screen without flickering using the M5EPD. But python doesn't.
      Is there a way with python to update only one character, not the whole screen like M5EPD? Even using "partial show", the small area blinks.
      And one more thing, is there a way to prevent the screen from flickering when waking up the device after executing m5.shutdown() on the Arduino?

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by felmue

        Hello @BBulMushroom

        under Arduino it is possible to update the screen after waking up from shutdown w/o flickering. It's a bit tricky as the previous content (e.g. what was on the screen before the shutdown) needs to be available after waking up again as it needs to be 'drawn' again before the new content can be applied, else the previous content is not removed and pixels are just added over each other. In this example this is achieved by using M5Papers EEPROM to store the current value of the count.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 1
        • ajb2k3A
          ajb2k3
          last edited by

          Screen redraws are normally slow because of the e-ink specification, flicker is normal. If your not getting it on arduino you may be forgetting the required draw delay and overdriving the screen refresh rate!

          UIFlow, so easy an adult can learn it!
          If I don't know it, be patient!
          I've ether not learned it or am too drunk to remember it!
          Author of the WIP UIFlow Handbook!
          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

          1 Reply Last reply Reply Quote 0
          • felmueF
            felmue
            last edited by

            Hello @ajb2k3

            thank you for the valuable reminder about the screen refresh rate. My above example is meant to show that it is possible to do a refresh w/o flickering even after a shutdown.

            Thanks
            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

            1 Reply Last reply Reply Quote 1
            • First post
              Last post