You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying the TFT examples in File -> Examples -> Examples for Spresense -> TFT -> Arduino, compilation fails with:
In file included from C:\Users\derekm\AppData\Local\Arduino15\libraries\TFT\src\utility\Adafruit_GFX.cpp:35:
C:\Users\derekm\AppData\Local\Arduino15\libraries\TFT\src\utility\glcdfont.c:3:10: fatal error: avr/io.h: No such file or directory
3 | #include <avr/io.h>
| ^~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
The text was updated successfully, but these errors were encountered:
@derekm
This is not limited to the Spresense board, but to Arduino boards in general,
After installing Arduino IDE2, the first time you run it, the Built-in libraries will be downloaded to the following location for Windows PC.
These libraries, including TFT, will fail to build in the Spresense board environment because they are mainly dedicated to the AVR board.
As you mentioned, the Examples menu is confusing because both the Spresense-specific libraries and the built-in libraries are listed as Examples for Spresense.
It has been reported as an Arduino IDE issue, but seems to be still unresolved. arduino/arduino-ide#2259
If you are not likely to use the Built-in libraries, you can remove the above folder.
When trying the TFT examples in File -> Examples -> Examples for Spresense -> TFT -> Arduino, compilation fails with:
The text was updated successfully, but these errors were encountered: