Hi, I have a project where I want to connect a 3.5" tft display ILI9488 controller to a Due board. I'm a beginner and the first issue is how to connect (wire) the display to the board. And in accordance to this which would be the best library to work?
I'l try to post an image with my display.
/*
* SPI Interfaces
*/
#define SPI_INTERFACES_COUNT 1
#define SPI_INTERFACE SPI0
#define SPI_INTERFACE_ID ID_SPI0
#define SPI_CHANNELS_NUM 4
#define PIN_SPI_SS0 (77u)
#define PIN_SPI_SS1 (87u)
#define PIN_SPI_SS2 (86u)
#define PIN_SPI_SS3 (78u)
#define PIN_SPI_MOSI (75u)
#define PIN_SPI_MISO (74u)
#define PIN_SPI_SCK (76u)
#define BOARD_SPI_SS0 (10u)
#define BOARD_SPI_SS1 (4u)
#define BOARD_SPI_SS2 (52u)
#define BOARD_SPI_SS3 PIN_SPI_SS3
#define BOARD_SPI_DEFAULT_SS BOARD_SPI_SS3
#define BOARD_PIN_TO_SPI_PIN(x) \
(x==BOARD_SPI_SS0 ? PIN_SPI_SS0 : \
(x==BOARD_SPI_SS1 ? PIN_SPI_SS1 : \
(x==BOARD_SPI_SS2 ? PIN_SPI_SS2 : PIN_SPI_SS3 )))
#define BOARD_PIN_TO_SPI_CHANNEL(x) \
(x==BOARD_SPI_SS0 ? 0 : \
(x==BOARD_SPI_SS1 ? 1 : \
(x==BOARD_SPI_SS2 ? 2 : 3)))
static const uint8_t SS = BOARD_SPI_SS0;
static const uint8_t SS1 = BOARD_SPI_SS1;
static const uint8_t SS2 = BOARD_SPI_SS2;
static const uint8_t SS3 = BOARD_SPI_SS3;
static const uint8_t MOSI = PIN_SPI_MOSI;
static const uint8_t MISO = PIN_SPI_MISO;
static const uint8_t SCK = PIN_SPI_SCK;
Thanks for the answer, but as I said, I'm a beginner. You should tell me what to do with these lines of code. First: how to physically connect pin to pin?
Thanks. Ok, if I understand correctly, it is enough to connect the 4 SPI pins : CS, MOSI, MISO, SCK from display to the same pins on Due board. What about power pins: VCC and GND?
Should I connect to 3V3 and GND from DUE board?
I have a problem because I am using the same layout of card (4.0 display v1.1) and I am using the hardware SPI of the Due for the SD Card reader, and I need both the screen and the reader. I tried using these pins:
#define TFT_CS A5
#define TFT_CD A3
#define TFT_RST A4
#define TFT_LED A0
#define TFT_MOSI 51
#define TFT_MISO 50
#define TFT_SCK 52
but I get nothing but a blank white screen.
For my application I need the TFT plus the SD plus I have other peripherals (digipots, rotary controllers, and relays, near the limit of pins on the Due.
Multiple accounts.
Multiple topics, same subject.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

