Skip to content

Arduino UNO R4 + DISPLAY WAVESHARE 3.5" - SPI - (ARDUINO SHIELD) WITH TOUCH DISPLAY #3896

@antonio118

Description

@antonio118

HI,
I am unable to have the combination work using the following "user_setup". Can somenody help? TKS.
//mi serve un file di setup per la libreria tft_eSPI
//per l'utilzzo di uno shield waveshare 3.5" SPI con un arduino uno R4

// ======================================================
// User_Setup.h per Waveshare WS035SPI (ILI9486)
// Arduino UNO R4 con DMA attivo
// ======================================================

// --- Driver TFT ---
#define ILI9486_DRIVER

// --- Pin SPI hardware UNO R4 ---
SCK = D13
MOSI = D11
MISO = D12

// --- Pin controllo TFT ---
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8

// --- Touch XPT2046 ---
#define TOUCH_CS 7
#define TOUCH_IRQ 6

// --- Frequenze SPI ---
// L’ILI9486 non regge clock molto alti via SPI
#define SPI_FREQUENCY 27000000
#define SPI_READ_FREQUENCY 16000000
#define SPI_TOUCH_FREQUENCY 2500000

// ======================================================
// DMA ENABLE
// ======================================================
#define USE_DMA

// Buffer DMA (obbligatorio su display 480x320)
#define DMA_BUFFER_SIZE 32768 // 32 KB, stabile per ILI9486

// ======================================================
// Opzioni consigliate
// ======================================================
#define TFT_ROTATION 1

#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
#define LOAD_GFXFF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions