-
I have a problem compiling the example from Adafruit SSD1306 with the arduino-pico board
When I try to compile I get the following error:
Any help would be appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The relevant code from the latest version of the library #ifdef __AVR__
#include <avr/pgmspace.h>
#elif defined(ESP8266) || defined(ESP32) || defined(ARDUINO_ARCH_RP2040)
#include <pgmspace.h>
#else
#define pgm_read_byte(addr) \
(*(const unsigned char *)(addr)) ///< PROGMEM workaround for non-AVR
#endif Make sure your Adafruit SSD1306 library is up to date, at least 2.5.2, and preferably 2.5.6, the latest as of this writing. We (Adafruit) added the tagging @caternuson for reference |
Beta Was this translation helpful? Give feedback.
The relevant code from the latest version of the library
is
Make sure your Adafruit SSD1306 library is up to date, at least 2.5.2, and preferably 2.5.6, the latest as of this writing. We (Adafruit) added the
defined(ARDUINO_ARCH_RP2040)
about 4 months ago to fix this problem:https://forums.adafruit.com/viewtopic.php?f=57&t=189849
adafruit/Adafruit_SSD1306#239
adafruit/Adafruit_SSD1306#240
tag…