From 7764e33dadb93ac0d13bafd24ec70b6fbeb963bb Mon Sep 17 00:00:00 2001 From: kurte Date: Wed, 5 Jul 2023 17:01:28 -0700 Subject: [PATCH] Support the new Arduino UNOR4 boards As mentioned on the Arduino forum, the library would not compile on the new boards. https://forum.arduino.cc/t/not-working-in-combination-with-adafruit-st7789/1145046 ``` Adafruit_ST77xx.cpp:29:10: fatal error: wiring_private.h: No such file or directory #include "wiring_private.h" ``` So updated the conditional for the STM32_FEATHER to also not include it for these new boards --- Adafruit_ST77xx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Adafruit_ST77xx.cpp b/Adafruit_ST77xx.cpp index dc671b2..34eda6e 100644 --- a/Adafruit_ST77xx.cpp +++ b/Adafruit_ST77xx.cpp @@ -24,10 +24,12 @@ #include "Adafruit_ST77xx.h" #include -#ifndef ARDUINO_STM32_FEATHER +#if !defined(ARDUINO_STM32_FEATHER) && !defined(ARDUINO_UNOR4_WIFI) +#if !defined(ARDUINO_UNOR4_MINIMA) #include "pins_arduino.h" #include "wiring_private.h" #endif +#endif #include #define SPI_DEFAULT_FREQ 32000000 ///< Default SPI data clock frequency