evive has a 1.8” TFT Display which is mainly used for visual feedback. The display has a 128 x 160 colour pixels. The TFT driver (ST7735R) can display full 18-bit colour (262,144 shades).
The ST7735 is a single-chip controller/driver for 262K-color, graphic type TFT-LCD. It consists of 396 source line and 162 gate line driving circuits. This chip is capable of connecting directly to an external microprocessor and accepts Serial Peripheral Interface (SPI), 8-bit/9-bit/16-bit/18-bit parallel interface. Display data can be stored in the on-chip display data RAM of 132 x 162 x 18 bits. It can perform display data RAM read/write operation with no external operation clock to minimize power consumption.
Controlling display using Arduino IDE
We will use evive Library to control the TFT display in Arduino IDE. You can download it from here. If you don't know how to install a library, click here to see the tutorial.
Alert: Please not that if your evive is not displaying the right color (RED) for this example code, change the arguement in the function, tft.init(INITR_BLACKTAB); to INTR_GREENTAB. Always remember which argument to use while initializing INITR_BLACKTAB or INITR_GREENTAB.
This block draws a rectangle with rounded corners of the specified radius, width, and height starting from the coordinate specified and sets the colour of its perimeter to the colour selected from the drop-down menu.
Draw circle from center ()() radius () colour ()
This block draws a circle of the specified radius with the coordinate specified as the center and sets the colour of the circumference to the colour selected from the drop-down menu.
Draw ellipse from center ()() x length () y length () colour
This block draws an ellipse of the specified lengths of the x-axis and y-axis with the coordinate specified as the center and sets its colour to the colourselected from the drop-down menu.
Draw triangle: Point 1 ()() Point 2 ()() Point 3 ()() colour ()
This block draws a triangle with the points specified as its vertices and its colour to the colour selected from the drop-down menu.
If you want to know more on how to control TFT Display using evive, read this tutorial.