@@ -177,36 +177,38 @@ static inline bool platformSafeModeRequested(void) {
177177#endif
178178#define EYE_BOARD_DEFAULT_EYES 2 ///< Eye count that suits this board
179179
180- // ---- RP2040 QT Py + EYESPI BFF ------------------------------------------
181- #elif defined(ARDUINO_ADAFRUIT_QTPY_RP2040 ) || \
182- defined(ARDUINO_ADAFRUIT_QTPY_ESP32S2 )
183- /** Board profile that matched, for the startup banner */
184- #define EYE_BOARD_NAME "QT Py + EYESPI BFF"
180+ // ---- Adafruit QT Py RP2040 + EYESPI BFF ---------------------------------
181+ #elif defined(ARDUINO_ADAFRUIT_QTPY_RP2040 )
182+ #define EYE_BOARD_NAME "QT Py RP2040 + EYESPI BFF"
185183#ifndef EYE_PANEL_DEFAULT
186- /** Panel this board most likely has */
187184#define EYE_PANEL_DEFAULT EYE_PANEL_GC9A01A
188185#endif
189- #define EYE_BOARD_DEFAULT_EYES 1 ///< Eye count that suits this board
186+ #define EYE_BOARD_DEFAULT_EYES 1
190187#ifndef TFT_CS
191- #if defined(TX )
192- #define TFT_CS TX ///< Chip select for panel 0
193- #elif defined(PIN_SERIAL1_TX )
194- #define TFT_CS PIN_SERIAL1_TX ///< Chip select for panel 0
195- #else
196- #error "QT Py profile: cannot resolve the TX pad; set TFT_CS in settings.h"
197- #endif
188+ #define TFT_CS PIN_SERIAL2_TX
198189#endif
199190#ifndef TFT_DC
200- #if defined(RX )
201- #define TFT_DC RX ///< Data/command pin, shared by both panels
202- #elif defined(PIN_SERIAL1_RX )
203- #define TFT_DC PIN_SERIAL1_RX ///< Data/command pin, shared by both panels
204- #else
205- #error "QT Py profile: cannot resolve the RX pad; set TFT_DC in settings.h"
191+ #define TFT_DC PIN_SERIAL2_RX
192+ #endif
193+ #ifndef TFT_RST
194+ #define TFT_RST -1 ///< Not wired on the BFF
195+ #endif
196+
197+ // ---- Adafruit QT Py ESP32-S2 + EYESPI BFF -------------------------------
198+ #elif defined(ARDUINO_ADAFRUIT_QTPY_ESP32S2 )
199+ #define EYE_BOARD_NAME "QT Py ESP32-S2 + EYESPI BFF"
200+ #ifndef EYE_PANEL_DEFAULT
201+ #define EYE_PANEL_DEFAULT EYE_PANEL_GC9A01A
206202#endif
203+ #define EYE_BOARD_DEFAULT_EYES 1
204+ #ifndef TFT_CS
205+ #define TFT_CS TX
206+ #endif
207+ #ifndef TFT_DC
208+ #define TFT_DC RX
207209#endif
208210#ifndef TFT_RST
209- #define TFT_RST -1 ///< Panel reset pin, shared; -1 if tied to board reset
211+ #define TFT_RST -1
210212#endif
211213
212214// ---- Anything else ------------------------------------------------------
0 commit comments