Not working in combination with Adafruit ST7789

I tried to compile my old sketch for the new Uno R4 Wifi and got this error:

Adafruit_ST77xx.cpp:29:10: fatal error: wiring_private.h: No such file or directory
 #include "wiring_private.h"
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
// includes
#include <SPI.h>
#include <Arduino.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789 (TFT)

It seems that the Arduino.h has no wiring_private.h and samd.h or do I miss just an additional library?

This file is board specific, it can be or not be there.

This error means that the library is not adopted to the R4 board yet.

For what it is worth I verified that it does not build, and did a simple fix to not include this file when building for either of the UNO-R4 boards, and was able to build and run it on a Wifi board with an Adafruit ST7789 320x240 display

Created Pull Request:
Support the new Arduino UNO-R4 boards by KurtE · Pull Request #187 · adafruit/Adafruit-ST7735-Library (github.com)

Obviously it is up to Adafruit if they will merge it in or not.

2 Likes