skpang
Well-known member
I'm using a 2.8" ILI9341 LCD on Teensy 4.0
To update a counter I first fill a rectangle with the background colour to erase the old number the print the new number.
There is alway a small annoying flicker on the screen. I think is the fill then redraw.
Is there any way to remove the flicker ?
To update a counter I first fill a rectangle with the background colour to erase the old number the print the new number.
There is alway a small annoying flicker on the screen. I think is the fill then redraw.
Is there any way to remove the flicker ?
Code:
#include "SPI.h"
#include "ILI9341_t3.h"
#include <font_liberationSansBold.h>
#define TFT_DC 9
#define TFT_CS 10
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
ILI9341_t3 tft = ILI9341_t3(TFT_CS, TFT_DC);
int i;
void setup() {
tft.begin();
tft.setRotation(3);
tft.fillScreen(ILI9341_BLUE);
tft.setTextColor(ILI9341_YELLOW);
tft.setFont(LiberationSans_60_Bold);
i = 1234;
}
void loop() {
tft.fillRect(0,0,185, 80,ILI9341_BLUE); // Remove the old text
tft.setCursor(0,16);
tft.println(i++);
delay(1000);
}