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

    Problem with M5.Lcd.readRect

    PROJECTS
    2
    3
    8.4k
    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.
    • D
      dda
      last edited by

      Hi,

      I've been implementing a menu system, and to be able to display the menu without destroying whatever was on the screen before, I am using M5.Lcd.readRect() to save parts of the screen in memory, to redraw later with M5.Lcd.pushRect().

      The problem is, it is currently not working. I could (almost) swear it worked a few days ago, but now when I call M5.Lcd.readRect(), all values are 0xFFFF...

      0_1517724186126_20180204_135355.jpg

      As you can see, there's plenty of blue and yellow (ugly I know, but I need to make sure!) in the top left corner. But the printout of save0 gives me this:

      0_1517724276887_20180204_135435.jpg

      All pixels are 0xFFFF... What am I missing here?

      TIA.

      1 Reply Last reply Reply Quote 0
      • 0x1abin0
        0x1abin
        last edited by

        LCD hardware is not connect the miso pin, sorry next version will remove it.

        1 Reply Last reply Reply Quote 0
        • D
          dda
          last edited by

          So there's no way to make a copy of the screen for now?

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