🤖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

    Scheduled Pinned Locked Moved PROJECTS
    3 Posts 2 Posters 9.8k 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.
    • D Offline
      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 Offline
        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 Offline
          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

          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