I want to control an OLED Display with an Adafruit_SSD1306.h library and an leonardo board.
With arduino it is working perfekt but as soon as I include the library <Adafruit_SSD1306.h> the following error occurs:
In file included from /home/berni/Arduino/oled_mit_ds18b20/oled_mit_ds18b20.ino:3:0:
/home/berni/Arduino/libraries/Adafruit_SSD1306-master/Adafruit_SSD1306.h:49:26: fatal error: Adafruit_GFX.h: No such file or directory #include <Adafruit_GFX.h>
I cannot understand the error on #include <Adafruit_GFX.h> because it is after //?
It shoul be a comment. The original code is from an example.
/home/berni/Arduino/libraries/Adafruit_SSD1306-master/Adafruit_SSD1306.h:49:26: fatal error: Adafruit_GFX.h: No such file or directory #include <Adafruit_GFX.h>
The error message quite clearly shows that the include is in the file "Adafruit_SSD1306.h", not in the code you posted.
I'm sorry,
i wanted to do the little 'project' with another computer with no libraries.
After importing the libraries the code was compiled without any errors.