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

    Proper way to clear LCD screen on M5StickC?

    Scheduled Pinned Locked Moved Arduino
    4 Posts 2 Posters 18.0k Views 1 Watching
    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 Offline
      kgobes
      last edited by

      Hi everyone, this feels very simple but I can't find a way in Arduino to clear or reset the LCD screen on the M5StickC. For the stack, I see there is a method: M5.Lcd.clear(BLACK); for example, but it doesn't work on the stick for me.

      Any ideas? A makeshift solution is to turn screen black and reset cursor to top, but that feels inefficient. Thanks!

      1 Reply Last reply Reply Quote 0
      • m5stackM Offline
        m5stack
        last edited by m5stack

        M5.Lcd.fillScreen(BLACK);
        
        1 Reply Last reply Reply Quote 0
        • K Offline
          kgobes
          last edited by

          Thanks! I found that when I do this, the text does not clear. So, when I add more text, instead of it starting at the top corner again (for example), it adds to it as if the other text were still there but not visible. And if you keep adding text, say in a loop, then eventually it runs of the page and you can't see anything. So, is there no way to totally clear other than manually both moving the cursor and changing the color?

          1 Reply Last reply Reply Quote 0
          • m5stackM Offline
            m5stack
            last edited by

            The cursor position will follow the printing of the screen content, so you have to operate the cursor.

            more API information you could refer this page.

            https://docs.m5stack.com/#/en/arduino/arduino_home_page

            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