Skip to content

Arduino Uno WiFi R4: ILI9341 TFT blank/corrupted display with Hardware SPI constructor Adafruit_ILI9341(CS, DC, RST) #98

Description

@drexnotes

Description of the Issue
When using the Adafruit_ILI9341 library with an Arduino Uno WiFi R4 board to drive an ILI9341 TFT display module (which includes an integrated XPT2046 touch controller and SD card), the display consistently remains blank or shows corrupted graphical output. The touch functionality is also unresponsive.

Its important to note, this setup and code works perfectly with Arduino Uno R3, I tested by just switching the boards.

This issue occurs specifically when attempting to use the hardware SPI constructor Adafruit_ILI9341(CS, DC, RST).

Steps to Reproduce the Issue
Hardware Setup:

Board: Arduino Uno WiFi R4
Display Module: Generic ILI9341 TFT module with integrated XPT2046 touch and SD card.
Wiring:
TFT_CS: Digital Pin 10
TFT_DC: Digital Pin 9
TFT_RST: Digital Pin 8
SD_CS: Digital Pin 4 (for integrated SD card)
TCH_CS: Digital Pin 5 (for XPT2046 touch controller)
TCH_IRQ: Analog Pin A5 (connected but not currently used for interrupts in minimal sketch)
Shared Hardware SPI pins (MOSI, MISO, SCK) connected to standard pins 11, 12, 13 on Arduino Uno WiFi R4. (A wiring diagram can be provided if needed.)
Software Setup:

Arduino IDE Version: (State your exact version, e.g., 2.3.2)
Board Package: Arduino Uno R4 Boards (State exact version, e.g., 1.0.4)
Libraries:
Adafruit_GFX (State exact version, e.g., 1.11.5)
Adafruit_ILI9341 (State exact version, e.g., 1.7.0)

Github_AdaFruit_ILI9341_Bug_Sketch.txt

Image

SPI (standard Arduino library)
SD (standard Arduino library)
XPT2046_Touchscreen (State exact version, e.g., 1.4.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions