From 737e3d7fbc2de8f8402884a65d1322567306f290 Mon Sep 17 00:00:00 2001 From: "Ryan M. Lederman" Date: Thu, 2 Nov 2023 00:57:56 -0600 Subject: [PATCH] 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 +}