Problem with M5.Lcd.readRect
-
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...

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:

All pixels are 0xFFFF... What am I missing here?
TIA.
-
LCD hardware is not connect the miso pin, sorry next version will remove it.
-
So there's no way to make a copy of the screen for now?
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