PaulStoffregen / ST7735_t3

Teensy 3.x Optimized Version of Adafruit_ST7735 (1.8 inch TFT Display)
33 stars 16 forks source link

updateScreen() support using clip rectangle #33

Closed KurtE closed 1 year ago

KurtE commented 1 year ago

Hi @PaulStoffregen @mjs513,

The ST77xx code did not have the code in place to support doing updateScreen from Frame buffer and have it only update the area within current clip rectangle, like some of the others do.

So added it. This does not yet include the code that figures out what areas of the display have been updated (dirty) and use that setting. not sure yet if that was added into all of the graphic primitives. Will check and see if I can simply add a few checks and sets, else need to merge in some more code.

Using the clip code to limit how much of the display gets updated can speed up things a lot in some cases.

Can merge nor or wait and see if we try to add in additional stuff.

Longer term may update these drivers to allow the clip code to work in the Asyn updates using DMA.

Now off to play