1,8 TFT Display - EN
1,8 TFT Display - EN
And thank you for purchasing our AZ-Delivery SPI 1.8" TFT
display! On the following pages, we will take you through the first
steps from connecting the display to displaying text and
graphics.
Have fun!
The AZ-Delivery TFT display is a practical and energy-saving
module for displaying multi-line information, graphics or simple
animations without having to use powerful computing technology.
For example, sensor values can be read out from an Nano V3.0
or other microcontroller and displayed directly. The SD card
reader integrated on the back also makes it possible to display
images.
» Dimensions (LxBxH)
» Board: 34,5 x 58 x 7,5 mm
» Display size: 34,5 x 46,5 x 2,4 mm
» Display area: 32 x 38 mm
» Power consumption
» up to 50mA with max. Backgroundlight
Programming environments:
» Arduino IDE:
https://www.arduino.cc/en/Main/Software »
Web-Editor: https://create.arduino.cc/editor
Arduino Libraries:
» TFT LCD Library:
https://www.arduino.cc/en/Reference/TFTLibrary
» Adafruit ST7735 Library:
https://github.com/adafruit/Adafruit-ST7735-Libr
ary » Adafruit GFX Library:
https://github.com/adafruit/Adafruit-GFX-Library
MC > TFT
3.3 V – LED (Hintergrundbeleuchtung)
13 – SCK (Takt)
11 – SDA (MOSI)
9 – A0
8 – RESET
10 – CS (Chip Select / Adresse)
GND – GND
5 V – VCC
MC > SD-Kartenleser
4 – SD_CS (Chip Select / Adresse)
11 – SD_MOSI
12 – SD_MISO
13 – SD_SCK (Takt)
Font and graphics with the standard library
The ST7735 display driver built into the AZ-Delivery SPI 1.8"
TFT is so popular that it can be controlled via the TFT library
installed directly with the Arduino IDE on your computer.
Accordingly, you can already load a ready-made sketch onto
your controller, for example "TFTGraph":
// Hintergrundfarbe (RGB):
TFTscreen.background(250, 16, 200);
// Linienfarbe (RGB):
TFTscreen.stroke(250, 180, 10);
// Text schreiben
TFTscreen.text("Hier steht der Text", x,
y);
If you want more options for creating your displays, you can
use the GFX library from Adafruit. To use it with the display,
install the "Adafruit GFX Library" and the "Adafruit ST7735
Library" via the Library Manager:
If you now open the sketch "graphictest", you will find lots of
design options from the definition of a single pixel to lines
and rectangles to prefabricated more complex shapes such
as the media buttons.
In order for the code to work, you still have to make a small
change, as Adafruit's pins 8 and 9 are reversed compared to
the TFT library. Just change lines 32 and 34 according to
your circuit.
Now you can upload the sketch or take a look at the code and
create your own.
Information:
In rare cases, it can happen with this library that the display
gets a luminous border. If this is the case with yours, change
the variable "INITR_BLACKTAB" to "INITR_GREENTAB" in
the setup() method in line 55.
You did it! Congratulations!
From now on it's learning time. With the help of the AZ Delivery
SPI 1.8" TFT display, you can not only visualise static images,
graphics or texts, but also make visible what your connected
sensors have to tell you without having to rely on a connection
to a computer! And of course you can get these sensors and
other hardware at your online shop:
https://az-delivery.de
Have Fun!
Impressum
https://az-delivery.de/pages/about-us