RobbSalzmann
Member
BBoyes,
The way to eliminate the flicker and tearing you're observing is to use a buffer in SRAM, make all the "onscreen" changes to that, then when you're done making all the changes you want to see on the screen, write the contents of the buffer to the ILI9341's memory using DMA. FrankB provides a great starting point/example of this here: https://forum.pjrc.com/threads/3670...een-DMA-Buffer-for-Teensy-3-5-Teensy-3-6-only
Frank's example can be adapted to a variety of displays and resolutions and you'll be surprised at the performance enhancement the buffer/DMA approach will yield.
The way to eliminate the flicker and tearing you're observing is to use a buffer in SRAM, make all the "onscreen" changes to that, then when you're done making all the changes you want to see on the screen, write the contents of the buffer to the ILI9341's memory using DMA. FrankB provides a great starting point/example of this here: https://forum.pjrc.com/threads/3670...een-DMA-Buffer-for-Teensy-3-5-Teensy-3-6-only
Frank's example can be adapted to a variety of displays and resolutions and you'll be surprised at the performance enhancement the buffer/DMA approach will yield.
Last edited: