🤖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?

    Arduino
    2
    4
    16.1k
    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
      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
        m5stack
        last edited by m5stack

        M5.Lcd.fillScreen(BLACK);
        
        1 Reply Last reply Reply Quote 0
        • K
          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
            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
            • First post
              Last post