Scrollable page via sprite? #2434
Unanswered
rradomir
asked this question in
Q&A - Sprites
Replies: 2 comments
-
This is a reasonable approach for small screen areas, less practical for large areas due to the memory consumed. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, indeed. I have two questions associated with it.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I only "discovered" sprite functionality, instantly thought about this.
It is good approach?
My goal is to draw page at once, and then print only visible part and just scroll it. Then I can change values of bars. For now they are mockups of course. Please review, if you have time for that :D
https://github.com/rradomir/Page-Scroll-TFT_eSPI
I thinking of updating only one changed bar. I think it is possible to update sprite and push to screen only changed part of it. Im only need to calculate offsets. Of course when I scroll page, all of it must be redrawed.
Handle length is calculated at start, so changing length of page should extend/shrink also scrollbar.
Im surprised that redrawing page isn't that laggy but im quickly running out of RAM :D
Beta Was this translation helpful? Give feedback.
All reactions