z-uno with adafruit TFT Display - libraries won't compile
Posted: 25 Mar 2018 00:49
I'd like to connect the following adafruit TFT touchscreen to my z-uno: https://learn.adafruit.com/adafruit-3-5 ... t/overview
It works and compiles perfectly with an arduino board, however I'm unable to compile the needed libraries when I change the board in the Arduino IDE to z-uno.
The following libraries are required:
https://github.com/adafruit/Adafruit-GFX-Library/
https://github.com/adafruit/Adafruit_HX8357_Library/
https://github.com/adafruit/Adafruit_STMPE610/
At first, the complier fails with "Adafruit_GFX.cpp:35:22: fatal error: glcdfont.c: No such file or directory" - although the file definitely exists and lies just in the same directory as Adafruit_GFX.cpp. Just to test, I commented out the #include "glcdfont.c" line to see, what happens next. The compiler terminates with a bunch of errors - see below. These are not caused by the missing glcdfont.c but by some underlying issue, which I don't understand.
ANY help strongly appreciated! Thanks!
Adafruit_GFX_sdcpp_.cpp:813:25:error:unknown type name '__FlashStringHelper'
Adafruit_GFX_sdcpp_.cpp:817:18:error:virtual function 'write' has a different return type ('size_t' (aka 'unsigned int')) than the function it overrides (which has return type 'void')
Adafruit_GFX_sdcpp_.cpp:1571:55:error:use of undeclared identifier 'font'
Adafruit_GFX_sdcpp_.cpp:1844:40:error:unknown type name '__FlashStringHelper'
Adafruit_GFX_sdcpp_.cpp:1956:29:error:use of undeclared identifier 'malloc'
Adafruit_GFX_sdcpp_.cpp:1962:16:error:use of undeclared identifier 'free'
Adafruit_GFX_sdcpp_.cpp:2018:29:error:use of undeclared identifier 'malloc'
Adafruit_GFX_sdcpp_.cpp:2024:16:error:use of undeclared identifier 'free'
Adafruit_GFX_sdcpp_.cpp:2100:30:error:use of undeclared identifier 'malloc'
Adafruit_GFX_sdcpp_.cpp:2101:9:error:no matching function for call to '_zme_memset'
Adafruit_GFX_sdcpp_.cpp:2106:16:error:use of undeclared identifier 'free'
Adafruit_GFX_sdcpp_.cpp:2143:13:error:no matching function for call to '_zme_memset'
It works and compiles perfectly with an arduino board, however I'm unable to compile the needed libraries when I change the board in the Arduino IDE to z-uno.
The following libraries are required:
https://github.com/adafruit/Adafruit-GFX-Library/
https://github.com/adafruit/Adafruit_HX8357_Library/
https://github.com/adafruit/Adafruit_STMPE610/
At first, the complier fails with "Adafruit_GFX.cpp:35:22: fatal error: glcdfont.c: No such file or directory" - although the file definitely exists and lies just in the same directory as Adafruit_GFX.cpp. Just to test, I commented out the #include "glcdfont.c" line to see, what happens next. The compiler terminates with a bunch of errors - see below. These are not caused by the missing glcdfont.c but by some underlying issue, which I don't understand.
ANY help strongly appreciated! Thanks!
Adafruit_GFX_sdcpp_.cpp:813:25:error:unknown type name '__FlashStringHelper'
Adafruit_GFX_sdcpp_.cpp:817:18:error:virtual function 'write' has a different return type ('size_t' (aka 'unsigned int')) than the function it overrides (which has return type 'void')
Adafruit_GFX_sdcpp_.cpp:1571:55:error:use of undeclared identifier 'font'
Adafruit_GFX_sdcpp_.cpp:1844:40:error:unknown type name '__FlashStringHelper'
Adafruit_GFX_sdcpp_.cpp:1956:29:error:use of undeclared identifier 'malloc'
Adafruit_GFX_sdcpp_.cpp:1962:16:error:use of undeclared identifier 'free'
Adafruit_GFX_sdcpp_.cpp:2018:29:error:use of undeclared identifier 'malloc'
Adafruit_GFX_sdcpp_.cpp:2024:16:error:use of undeclared identifier 'free'
Adafruit_GFX_sdcpp_.cpp:2100:30:error:use of undeclared identifier 'malloc'
Adafruit_GFX_sdcpp_.cpp:2101:9:error:no matching function for call to '_zme_memset'
Adafruit_GFX_sdcpp_.cpp:2106:16:error:use of undeclared identifier 'free'
Adafruit_GFX_sdcpp_.cpp:2143:13:error:no matching function for call to '_zme_memset'