🤖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

    Scheduled Pinned Locked Moved Arduino
    4 Posts 4 Posters 5.8k Views
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post