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

    Deleting QR from screen

    UIFlow
    2
    3
    4.3k
    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.
    • K
      Kris
      last edited by

      In this program I try to set the temperature using Remote + and it works. However, I have a problem with removing the QR code from the screen. I delete the screen with a long press of A, but the texts do not return to the screen although they are in a loop.!0_1635090709115_env+QR.png 0_1635090759714_screen.jpg

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

        Hello @Kris

        there seems to be some logic which only actually (re-)draws labels (probably other stuff too) onto the screen when its content has changed from last time. My guess would be that this is done to prevent flickering.

        So in your case after setting the screen black only the labels which have different content from before are actually redrawn. The only way I found to 'fix' this is that after setting the screen background to also set all the labels to let's say an empty string, e.g. "". This will force a redraw.

        Thanks
        Felix

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

        K 1 Reply Last reply Reply Quote 0
        • K
          Kris @felmue
          last edited by

          @felmue Good idea. Thanks

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