I have an error that has just started up, with the st7735 library from Adafruit. I bought an 1.8" spi/i2c tft screen off ebay a few years ago, i downloaded the library above and the adafruit_gfx one too, they worked fine with the code at the time.. however recently i have begun to use them in a different project and now i cant even compile the code in the ide....
here is a capture of the error when im trying to compile (just the example code now, as i noticed my code wasnt working so i went back to origional code to debug etc..)
C:\Program Files (x86)\Arduino\libraries\Adafruit_ST7735\examples\graphicstest\graphicstest.ino: In function 'void setup()':
C:\Program Files (x86)\Arduino\libraries\Adafruit_ST7735\examples\graphicstest\graphicstest.ino:71:397: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
testdrawtext("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur adipiscing ante sed nibh tincidunt feugiat. Maecenas enim massa, fringilla sed malesuada et, malesuada sit amet turpis. Sed porttitor neque ut ante pretium vitae malesuada nunc bibendum. Nullam aliquet ultrices massa eu hendrerit. Ut sed nisi lorem. In vestibulum purus a tortor imperdiet posuere. ", ST7735_WHITE);
C:\Program Files (x86)\Arduino\libraries\Adafruit_GFX\glcdfont.c:9:23: error: variable 'font' must be const in order to be put into read-only section by means of 'attribute((progmem))'
static unsigned char font[] PROGMEM = {
^
Multiple libraries were found for "Adafruit_GFX.h"
Used: C:\Program Files (x86)\Arduino\libraries\Adafruit_GFX
Not used: C:\Program Files (x86)\Arduino\libraries\Adafruit_GFX_Library
exit status 1
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Install the current versions of any libraries that you need.
Then post your "error" messages.
It is easy enough to fix them if Adafruit have not already done so.
The "newer" IDEs use newer versions of the Compiler. These tend to be a lot stricter. Once you have complied with the new Compiler, the corrected sketches should still compile with older IDEs / Compilers.
So you can give a compliant sketch to your friend who is still running an old IDE and it should work for both of you.
You have probably noticed the hundreds of 16x2 LCD users that have discovered that their library needs replacing.
It does not take very long to Google :
Adafruit_ST7735
Adafruit_GFX
In fact, the v1.6.6 Sketch->Include Library->Manage Libraries finds both of them, and will install them for you.
Shout if you have any problems with building or running the examples. e.g. missing const
I strongly recommend that you use the constructors with the RESET pin.
C:\Users\Mows\Documents\Arduino\ArduinoSketches\ST7735Main\MySt7735Countertest\MySt7735Countertest.ino:24:54: fatal error: Adafruit_GFX.h: No such file or directory
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
##################################
I have found the answer to my problem and thought someone else would like to know...
If you get a "exit status 1" error
go to the IDE ,sketch,include library,manage library and select all the library's that you think you would use
whether you have them under the arduino IDE,sketchbook,librarys or not.
you have to install them one by one, and lose your place everytime,search for the last position and so on,
it takes a lot of time but your Arduino IDE will work again,till the next upgrade.....