From 737e3d7fbc2de8f8402884a65d1322567306f290 Mon Sep 17 00:00:00 2001 From: "Ryan M. Lederman" Date: Thu, 2 Nov 2023 00:57:56 -0600 Subject: [PATCH 1/2] add feathers3 support to graphicstest_featherwing --- .../graphicstest_featherwing.ino | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/examples/graphicstest_featherwing/graphicstest_featherwing.ino b/examples/graphicstest_featherwing/graphicstest_featherwing.ino index 1907987..17a1794 100644 --- a/examples/graphicstest_featherwing/graphicstest_featherwing.ino +++ b/examples/graphicstest_featherwing/graphicstest_featherwing.ino @@ -21,11 +21,17 @@ #define TFT_CS 0 #define TFT_DC 15 #define SD_CS 2 -#elif defined(ESP32) && !defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2) +#elif defined(ESP32) && !defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2) && \ + !defined(ARDUINO_FEATHERS3) #define STMPE_CS 32 #define TFT_CS 15 #define TFT_DC 33 #define SD_CS 14 +#elif defined(ARDUINO_FEATHERS3) + #define TFT_DC 3 + #define TFT_CS 1 + #define STMPE_CS 38 + #define SD_CS 33 #elif defined(TEENSYDUINO) #define TFT_DC 10 #define TFT_CS 4 @@ -75,8 +81,8 @@ void setup() { x = tft.readcommand8(ILI9341_RDIMGFMT); Serial.print("Image Format: 0x"); Serial.println(x, HEX); x = tft.readcommand8(ILI9341_RDSELFDIAG); - Serial.print("Self Diagnostic: 0x"); Serial.println(x, HEX); - + Serial.print("Self Diagnostic: 0x"); Serial.println(x, HEX); + Serial.println(F("Benchmark Time (microseconds)")); delay(10); Serial.print(F("Screen fill ")); @@ -189,7 +195,7 @@ unsigned long testLines(uint16_t color) { tft.fillScreen(ILI9341_BLACK); yield(); - + x1 = y1 = 0; y2 = h - 1; start = micros(); @@ -394,4 +400,4 @@ unsigned long testFilledRoundRects() { } return micros() - start; -} \ No newline at end of file +} From 9cabe81d614dd1a27fcbfcae404d3f3b72c4078d Mon Sep 17 00:00:00 2001 From: "Ryan M. Lederman" Date: Wed, 19 Aug 2026 16:04:55 -0600 Subject: [PATCH 2/2] add support for feathers2, pros3, nanos3 Signed-off-by: Ryan M. Lederman --- .../graphicstest_featherwing.ino | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/examples/graphicstest_featherwing/graphicstest_featherwing.ino b/examples/graphicstest_featherwing/graphicstest_featherwing.ino index 9a25f0c..380e006 100644 --- a/examples/graphicstest_featherwing/graphicstest_featherwing.ino +++ b/examples/graphicstest_featherwing/graphicstest_featherwing.ino @@ -42,11 +42,21 @@ #define TFT_CS 15 #define TFT_DC 33 #define SD_CS 14 -#elif defined(ARDUINO_FEATHERS3) +#elif defined(ARDUINO_FEATHERS3) || defined(ARDUINO_FEATHERS2) #define TFT_DC 3 #define TFT_CS 1 #define STMPE_CS 38 #define SD_CS 33 +#elif defined(ARDUINO_PROS3) + #define TFT_DC 3 + #define TFT_CS 1 + #define STMPE_CS 38 + #define SD_CS 34 +#elif defined(ARDUINO_NANOS3) + #define TFT_DC 3 + #define TFT_CS 1 + #define STMPE_CS 33 + #define SD_CS 34 #elif defined(TEENSYDUINO) #define TFT_DC 10 #define TFT_CS 4