Skip to content

Commit

Permalink
Support the new Arduino UNOR4 boards
Browse files Browse the repository at this point in the history
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
  • Loading branch information
KurtE committed Jul 6, 2023
1 parent 518d51a commit 7764e33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Adafruit_ST77xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@

#include "Adafruit_ST77xx.h"
#include <limits.h>
#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 <SPI.h>

#define SPI_DEFAULT_FREQ 32000000 ///< Default SPI data clock frequency
Expand Down

0 comments on commit 7764e33

Please sign in to comment.