I bought a 1.8 inch tft display. Model st7735s. I want to display a text with my Arduino Uno r4 Wifi. But i got a error message from my ide

In file included from C:\Users\DELL\AppData\Local\Arduino15\libraries\TFT\src\utility\Adafruit_GFX.cpp:35:0:
C:\Users\DELL\AppData\Local\Arduino15\libraries\TFT\src\utility\glcdfont.c:3:10: fatal error: avr/io.h: No such file or directory
#include <avr/io.h>
^~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1

Welcome to the forum

According to the topic title you are using a Uno R4 WiFi

error: avr/io.h: No such file or directory
#include <avr/io.h>

The error message seems to indicate that an AVR processor is expected by the library but your Uno does not have an AVR processor

Conclusion. The library is compatible with a classic Uno/Nano etc but not with the Uno R4 boards

In the Arduino IDE select from the main menu: Tools -->Boards --> Arduino AVR Boards and then at the end of the list: Arduino Uno Wifi

would that help ?
regards, Photoncatcher

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.