I am reworking an old project that uses a 2.2 TFT SPI display (240x320).
I project requires me to connect the display to an Arduino Nano D8 -> SCK, D7 ->SDI and D6 -> RS
I have existing code which I am sure that was working earlier with the following line
Ucglib_ILI9341_18x240x320_SWSPI ucg(/sclk=/ 8, /data=/ 7, /cd=/ 6 , /cs=/ 4,
/reset=/ 3);
I have used a voltage divider on the three pins for 5V to 3v3.
I need D4 and D3 for other functions (buttons).
All I am getting is a white screen, the program compiles ok but no text is displayed.
The Reset signal must be 3.3V logic. (active-low)
The CS must be 3.3V logic. (active-low)
The DC must be 3.3V logic.
The MOSI must be 3.3V logic.
The SCK must be 3.3V logic.
Yes, you can just use a pullup to 3.3V for Reset (and use ILI9341 Software Reset Command)
Yes, you can just use a pulldown to GND for CS (if it is the only SPI device on the bus)