-
I'm using UpdateDisplayArea to display individual components on the oled screen. Is there an easier way than painting the region with inverse color then going with UpdateDisplayArea? I was thinking a procedure like ClearDisplayArea could be useful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
UpdateDisplayArea acts more like a post processing filter: Only pixel data within the specified rectangle will be uploaded to the display.
If you just want to update a part of the display (for performance reasons for example), then you just keep the loop, but prefix this with UpdateDisplayArea:
Clearing the picture will automatically happen with the firstPage/nextPage. Let me say it like this: "UpdateDisplayArea" is not a pixel drawing function, it is more like a configuration option to restrict the access of the drawing functions. |
Beta Was this translation helpful? Give feedback.
UpdateDisplayArea acts more like a post processing filter: Only pixel data within the specified rectangle will be uploaded to the display.
Bitmap data on the display outside the specified rectangle is just kept as it is.
I mean, you should have some code like this:
If you just want to update a part of the display (for performance reasons for example), then you just keep the loop, but prefix this with UpdateDisplayArea: