I am using the Waveshare 2" full-color LCD display to display some text. When I upload the code, the text briefly displays, but after around 2 seconds, the text is overwritten by a new background. My code is attached below, any help would be appreciated on how to get the text to constantly display.
#include <SPI.h>
#include "LCD_Driver.h"
#include "GUI_Paint.h"
#include "image.h"
void setup()
{
Config_Init();
LCD_Init();
Paint_Clear(BLACK);
}
void loop()
{
Paint_DrawString_EN(30, 10, "Test Text", &Font24, BLACK, CYAN);
}
3 posts - 3 participants