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

    update a single value without first deleting the entire display

    Arduino
    4
    4
    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.
    • S
      Stoni99
      last edited by

      I just want to update a single value in the display. Is this possible without first deleting the entire display?

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

        Hello @Stoni99

        assuming you mean an LCD screen, a couple of possibilities come to mind:

        • draw a rectangle (using background color) over the old text
        • write a couple of spaces over the old text
        • rewrite the previous text with background color first

        Thanks
        Felix

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

        P 1 Reply Last reply Reply Quote 1
        • P
          Powersoft @felmue
          last edited by

          @felmue often I use Serial.printf() function, with 90% of my application have the result I wanted! Also add the text background collor as the collor of the screen.

          1 Reply Last reply Reply Quote 0
          • M
            macsbug
            last edited by macsbug

            Hello @ Stoni99
            The same question is:
            https://forum.m5stack.com/topic/4180/writing-and-re-writing-text/6

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