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

    M5 Core Ink : screen refresh

    PROJECTS
    5
    8
    11.6k
    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.
    • C
      clacos
      last edited by

      Hi all,

      I could not figure out how to handle text modifications on the screen. After changing the text, I still can see the text previously written in the background, so it's quite unreadable.

      Do I have to use the drawing function to first clear the zone ?

      Thank you,

      ajb2k3A 1 Reply Last reply Reply Quote 1
      • D
        dheike
        last edited by

        @clacos said in M5 Core Ink : screen refresh:

        Hi all,
        I could not figure out how to handle text modifications on the screen. After changing the text, I still can see the text previously written in the background, so it's quite unreadable.
        Do I have to use the drawing function to first clear the zone ?
        Thank you,

        0_1615660619934_Screenshot 2021-03-13 193630.jpg

        Hi !
        here's an example. Hope it answers your question

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

          @clacos said in M5 Core Ink : screen refresh:

          Hi all,

          I could not figure out how to handle text modifications on the screen. After changing the text, I still can see the text previously written in the background, so it's quite unreadable.

          Do I have to use the drawing function to first clear the zone ?

          Thank you,

          The core ink has a screen has a refresh rate of 15 seconds for a full screen refresh. if you are trying to refresh the whole whole screen for less time then that may be the cause.

          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
          • C
            clacos
            last edited by

            Sorry I was not clear (and maybe in the wrong forum), I'm coding in C (platformIO).

            But I'll try to use UiFlow and compare if I see the same behavior. I guess that the core primitive are the same so it may show me the good way.

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

              Hello @clacos

              what exactly do you mean by zone? Would you mind posting your code (or the relevant part of it)?

              Thanks
              Felix

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

              1 Reply Last reply Reply Quote 0
              • ajb2k3A
                ajb2k3 @clacos
                last edited by

                @clacos said in M5 Core Ink : screen refresh:

                Sorry I was not clear (and maybe in the wrong forum), I'm coding in C (platformIO).

                But I'll try to use UiFlow and compare if I see the same behavior. I guess that the core primitive are the same so it may show me the good way.

                yeh, the same basic rules should apply.
                If the screen is not given enough time to refresh, it doesn't have time to remove the old text and so draws the new text possibly resulting in the issue you describe.

                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
                • L
                  lumpynose
                  last edited by

                  If you reload the app that was installed on the core ink when you got it and use the thumb wheel on the side to move between the two screens you'll see that it paints the entire screen black between displaying each screen. This is the same solution used on e-ink ebook readers (Kindle, Kobo, etc.) as a solution for ghosting from the previous page; it's an option you can turn on or off in the e-reader's settings. The support people ought to know something as simple as this.

                  ajb2k3A 1 Reply Last reply Reply Quote 0
                  • ajb2k3A
                    ajb2k3 @lumpynose
                    last edited by

                    @lumpynose the coreink default behaviour when you do a screen refresh (instead of partial refesh) is to change the whole screen to black and white several times as its basic e-ink function.
                    The coreink has a slow refresh rate of 15 seconds between refreshes and this is pointed out quite a few times in uiflow!

                    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
                    • First post
                      Last post