sparkfun / SparkFun_RGB_OLED_64x64_Arduino_Library

A fully featured Arduino library to support the RGB OLED 64x64 Display Breakout using the SSD1357 driver IC. Direct access to display RAM, drawing functions for pixels, lines, rectangles, and circles, and text display. A default font is built-in, and additional fonts can be hooked in by the user.
7 stars 4 forks source link

Doesn't work when using ESP32 device in Platform.io Arduino #2

Open samzio opened 4 years ago

samzio commented 4 years ago

Trying to use this library with Platform.io on VSCode, with the Expressiv ESP32 Dev Kit. However, we get this error when trying to #include the library:

"cannot open source file \"avr/pgmspace.h\"

This dependency is found in the util/font5x7.cpp file and can be remedied by changing this:

#include <avr/pgmspace.h>

to this

#if (defined(__AVR__))
#include <avr\pgmspace.h>
#else
#include <pgmspace.h>
#endif

Found this solution here: https://github.com/SodaqMoja/Sodaq_DS3231/issues/5

Kanken6174 commented 2 years ago

thanks for the tip, i had the same issue trying to compile the i2cdevlib on platform io 😊