Trying to connect up a GC9A01A 240x240 LCD. Pin code is below:
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_GC9A01A.h"
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8
#define TFT_BL -1 //don't have this pin
#define TFT_MISO -1 //don't have this pin
#define TFT_MOSI 11 //SDA
#define TFT_SCLK 13 //SCL
Adafruit_GC9A01A tft(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST, TFT_MISO);
VCC to 5V, Gnd to Gnd. The pins above are for my Uno. When connected, the display works perfectly.
However when I try to migrate the LCD display to my mega, I attach CS/DC/RST to the same pins, and SDA/SCL to the mega SDA(20) and mega SCL(21) pins.
For some reason the LCD doesn't even power up at all based on these connections. Voltage is present. I've tried moving the CS pin to a mega SPI (53) pin, but that still doesn't power up.
What am I missing here? Advice much appreciated.