How to Manipulate Text on TFT Display
This tutorial discusses a few more functions regarding the colour and size of text on evive’s TFT Display using functions from the TFT library in Arduino IDE, apart from the functions discussed in the tutorial on Getting Started with TFT Display.
You can change the colour of the text using the following function:
where color can be any of these predefined colors:
Apart from this function, other functions can also have these colours in their argument.
Below is an example showing how to change the color of the text on the screen:
Instead of setting colours manually, it is possible to put the responsibility of selecting any random colour on the shoulders of Arduino IDE. It can be done with the help of the function given below:
tft.Color565(uint8_t r, uint8_t g, uint8_t b);
where r, g, b are the red, green and blue value ranging from 0 to 255.
TFT Text Size
You can vary the size of the text using the function shown below:
Below is the Arduino sketch showing the use of function for changing the size of the text:
How to Draw Shapes on TFT Display
This Arduino TFT LCD screen tutorial discusses the functions of Arduino graphic display in the evive TFT screen library( Arduino graphic LCD library ) in Arduino that help in drawing different shapes on the display with the help of a Arduino Sketch. Details about Arduino graphics library is also given in the content.