I am creating a tiny game on my Arduino UNO with an Adafruit ST7735 1.8" TFT / SD breakout. I am performing screen operations using the built-in TFT-library.
The problem is screen flickering. Even though I take care to prepare data and minimize the time between clearing the screen and writing the new stuff to it, the screen "refresh()" is significant. I heard someone mention a something called double buffering, so I read a bit up on it, but I am frankly clueless on how to implement it on an Arduino UNO.
Is it possible to implement double buffering on an Arduino UNO to prevent screen flickering, and if so, how?
Libraries used:
#include <TFT.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
The screen is "cleared" like this:
screen.background(0,0,0); // Clear it
screen.text(buf, 10, 25); // Write new stuff