I am trying to use my new ILI9341 displays with my arduino mega, but when turned on, it only shows a white screen, even tho it work perfectly in the simulator.
The display im using has J1 OPEN, and when i searched i found that it means it should work fine with 5V.
Tryed with logic level convertors to but the same issue apears there asvell.
Here is the code im using
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_CS 22
#define TFT_RST 23
#define TFT_DC 24
#define TFT_LED 25
#define TFT_MISO 50
#define TFT_MOSI 51
#define TFT_SCK 52
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCK, TFT_RST, TFT_MISO);
void setup() {
// put your setup code here, to run once:
pinMode(TFT_LED, OUTPUT);
digitalWrite(TFT_LED, HIGH);
tft.begin();
tft.setRotation(1);
tft.fillScreen(ILI9341_BLACK);
tft.drawCircle(50, 50, 40, ILI9341_WHITE);
}
void loop() {
// put your main code here, to run repeatedly:
}
And the link to the simulator: idk what is the problem - Wokwi ESP32, STM32, Arduino Simulator
And the link to the images: idk why not working - Google Drive