#include <Ucglib.h>
// Create an instance of the Ucglib library
Ucglib_ILI9341_18x240x320_SWSPI ucg(/*sclk=*/ 52, /*data=*/ 51, /*cd=*/ 8, /*cs=*/ 10, /*reset=*/ 9);
void setup() {
// Initialize the TFT display
ucg.begin(UCG_FONT_MODE_SOLID);
// Set the font and color for text
ucg.setFont(ucg_font_ncenB14_tr);
ucg.setColor(255, 255, 255); // Set the color to white
ucg.setPrintDir(1);
}
void loop() {
// Clear the screen
ucg.clearScreen();
// Draw the text at the desired position
ucg.setPrintPos(120, 160); // Center of the display
ucg.print("Hello, World!");
// Delay for a short period of time
delay(1000);
}
FPS: 0
Power: 0.00W
Power: 0.00W