25 lines
620 B
C++
25 lines
620 B
C++
#include <TFT_eSPI.h>
|
|
TFT_eSPI tft;
|
|
|
|
void setup() {
|
|
Serial.begin(115200);
|
|
delay(2000);
|
|
|
|
// DEBUG: Print which pins TFT_eSPI thinks it's using
|
|
Serial.println("TFT_eSPI Pin Configuration:");
|
|
Serial.printf("TFT_MOSI: %d\n", TFT_MOSI);
|
|
Serial.printf("TFT_SCLK: %d\n", TFT_SCLK);
|
|
Serial.printf("TFT_CS: %d\n", TFT_CS);
|
|
Serial.printf("TFT_DC: %d\n", TFT_DC);
|
|
Serial.printf("TFT_RST: %d\n", TFT_RST);
|
|
Serial.printf("TFT_BL: %d\n", TFT_BL);
|
|
|
|
Serial.println("Expected: MOSI=45, SCLK=40, CS=42, DC=41, RST=39, BL=48");
|
|
|
|
tft.init(); // This is where it crashes if pins are wrong
|
|
}
|
|
|
|
|
|
void loop() {}
|
|
|