2.4” QVGA Touch Display
This a nice 2.4” 320x240 QVGA TFT Touch Display offering plug and play display output and
touch sensing together with a 4-bit SDMMC SD Card. We picked 2.4” over 2.8” as it has a crisper
display at 320 x 240 resolution and its slightly smaller size helps in IoT applications. Designed primarily for
development use it has an IoT-Bus socket at the side for easy access. Here’s the back view:
Buy it in the oddWires store…
Pins Used
IOT-Bus Pin |
Description |
2 |
DAT0 (SD Card) |
4 |
DAT1 (SD Card) |
5 |
SS (TFT) |
12 |
DAT2 (SD Card) |
13 |
DAT2 (SD Card) |
14 |
CLK (SD Card) |
15 |
CMD (SD) |
16 |
SS (Touch Screen) |
17 |
IRQ (Touch Screen) |
18 |
SCK (TFT) |
19 |
MISO (TFT) |
23 |
MOSI (TFT) |
27 |
DC (TFT) |
33 |
Backlight (TFT) - you will not see anything if you do not turn on the backlight! |
EN |
RESET (TFT) |
3V3 |
Power |
GND |
Ground |
Note
This board uses a lot of pins if you are using everything.
If you are not using the SDCard then those pins may be freely used.
You can also use the SCard in one pin mode freeing up DAT1, DAT2 and DAT3.
If you are not using the touch capabilities of the module then you can utilize those pins.
IRQ is not used by the forked version of the XPT2046 library freeing up pin 17.
The current versions of the IoT-Bus CAN Bus and LoRa modules cannot be used with this display.
Libraries
Name |
Description |
Framework |
Adafruit_ILI9341 |
Arduino |
Adafruit’s ILI9341 library - use with Adafruit-GFX-Library. |
Adafruit-GFX-Library |
Arduino |
Adafruit’s general purpose graphics library. |
TFTeSPI |
Arduino |
Bodmer’s TFT library has been forked to setup defaults. |
XPT2046_Touchscreen |
Arduino |
Fork of Paul Stoffgren’s XPT2046_Touchscreen library. |
ESP32_TFT_library |
esp-idf |
loboris TFT library for ESP32 |
Schematic
Click image to enlarge.
Frameworks
Name |
Description |
Arduino |
Arduino Wiring-based Framework allows writing cross-platform software to control devices attached to a wide range of Arduino boards to create all kinds of creative coding, interactive objects, spaces or physical experiences. |
ESP-IDF |
Espressif IoT Development Framework. Official development framework for ESP32. |