An idea to optimize the full refresh of epaper useing GxEPD2 #70
pangqianjin
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Take private out of the definition for your implementation. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Accessing member variables directly is a bad design (except for const attributes). GxEPD2 transposes partial windows to (0,0) in the buffer, so your use would not work. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I noticed that there is a private variable named "_buffer" at the source code, which was used to send the prepared contents to the screen. And I just had a thought that I want to access this "_buffer" 's value, when I need to fully updated my epaper after 5~6 partial updates(which will clear the shadow). I' d like to copy this _buffer firstly before the full update, and after full updating I'd like to use display.epd2.writeImage(_copied_buffer, 0, 0, GxEPD2_DRIVER_CLASS::WIDTH, GxEPD2_DRIVER_CLASS::HEIGHT) to re-draw the screen using the data before full updating.
However the "_buffer" is a private variable and I have not found some ways to do this.
Beta Was this translation helpful? Give feedback.
All reactions