Drawing Geometric Shapes on a TFT Display, Using the SSD1289 as an Example.

Drawing Geometric Shapes on a TFT Display, Using the SSD1289 as an Example.
Дисплеи

In the previous article we learned to display characters and strings on a TFT display; in this one we'll learn to draw geometric shapes. There aren't that many geometric shapes useful for building a graphical interface; the main ones are the rectangle and the circle, and those are what we'll learn to draw, in two variants, filled and unfilled. I'll say right away that the article will describe in detail...

Displaying Characters and Strings on a TFT Display, Using the SSD1289 as an Example.

Displaying Characters and Strings on a TFT Display, Using the SSD1289 as an Example.
Дисплеи

First of all, I'd like to say that the display's shorter side is X and the longer side is Y. In the previous article we looked at how to initialize the display; in this one we'll learn to display characters and strings. Let's start with characters. Characters are a set of points filled in a certain order. To display a point, you need to perform the following sequence...

Initializing a TFT Display for AVR, Using the SSD1289 as an Example.

Initializing a TFT Display for AVR, Using the SSD1289 as an Example.
Дисплеи

The other day a TFT display arrived, driven by an SSD1289 controller, with a resistive touch panel on an XPT2046 and an SD card slot, in short, this one. We'll use an Atmega16 as the controlling microcontroller. I didn't look for ready-made initialization examples; I decided to figure out how it works and write my own. First, let's deal with the connection interface. Communication with the SSD1289 controller can take place...