Replies: 6 comments 3 replies
-
@goddade this is only for the full screen size to avoid lines wrapping around the screen.
Some drivers clip the line drawing lines others like TFT_eSPIdriver uses a view port to clip the screen, again some do nothing at all. |
Beta Was this translation helpful? Give feedback.
-
@goddade Well, basically yes, but its more complicated than just one button. GUIslice's core routines will take of that though. So, your driver doesn't need to take it into account. For a more detailed answer on GUIslice's refresh code. The algorithm appears to be a simple variation of Apple's old package NOTE: GUIslice basic algorithm. When a programmer calls update() function within Arduino's Loop function This invalidation region is thus built up and gets larger and larger as Once completed this invalid region gets cleared or erased on screen and Now this is more complicated than I outlined because GUIslice does Now we all know of modern methods to handle screen refresh like having a Paul-- |
Beta Was this translation helpful? Give feedback.
-
Thank you @Pconti31 — you have summarized it well! Yes, I had independently come up with the redraw mechanism with the intent of keeping it relatively simple :) @goddade - a port to Arduino_GFX would be really great! I have not spent much time looking at the API yet but hopefully it isn’t too much of a delta from the Adafruit GFX baseline. |
Beta Was this translation helpful? Give feedback.
-
@Pconti31 Thank you for your explanation. I want to use GUISlice on my previous e-paper project. E-paper cannot be updated frequently, and using partial updates has better performance. |
Beta Was this translation helpful? Give feedback.
-
@ImpulseAdventure |
Beta Was this translation helpful? Give feedback.
-
Hi @goddade -- Just thought I'd let you know that I have been working through your PR #535 . Thanks very much for posting this! As you can imagine, creating a new version of the main "driver" ( So, in this past week I started looking into the changes in GUIslice_drv_ardgfx vs GUIslice_drv_adagfx and determining whether it may be practical to reuse the existing GUIslice_drv_adagfx with a new Other than the includes and device/bus interface instantiation, it looks like the main changes are in:
Before I integrate the PR, I may continue to explore whether an enhancement to GUIslice_drv_ardgfx (based on your updates) might be feasible. thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi, I want to port GUISlice to Arduino_GFX.
What is the role of clip in gui?
Can I update only the area of the rClipRect every time I update the screen?
Beta Was this translation helpful? Give feedback.
All reactions