Hello all,
I'm working on a IoT project. I was using a mega in combination with a esp8266, but now, because of cost-efficiency, I want to put the whole project on my esp. The esp8266 is working fine and I can program it via Arduino IDE and an arduino uno without the 328 chip. I uploaded the ili9341 graphics test on the esp. The esp is putting stuff on the serial monitor, but the display stays white. My wiring: pin 13 from the screen (clk) to GPIO 14, pin 12 (mosi) unconnected or to gpio 12, pin 11(miso) to gpio 13, cs to GPIO 15 and dc to GPIO 2. I use the arduino uno to power my esp and the mega to power my screen, but in the final product everything will be powered by a 3 amp 220v to 5v converter. This is the code snippet I changed:
// For the Adafruit shield, these are the default.
#define TFT_DC 4
#define TFT_CS 8
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
//Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
// If using the breakout, change pins as desired
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, 7, 5, 6);