-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pgmspace.h: No such file or directory for Raspberry Pi Pico #259
Comments
It works fine if you use version 2.5.1 fwiw:
(Don't use the |
Seems like 3fb7221 is at fault; they added support for the RP2040 Feather and somehow broke the RP2040 pico in the process. |
Switching to 2.5.1 (from 2.5.7) worked for me to get things building, I feel lucky this was my first search result! |
Hi |
merged! |
The error I get when trying to compile the example file "ssd1306_128x64_12c" is the following:
Adafruit_SSD1306.cpp:42:10: fatal error: pgmspace.h: No such file or directory
Lines 39-42 of such cpp file looks like this:
#ifdef AVR
#include <avr/pgmspace.h>
#elif defined(ESP8266) || defined(ESP32) || defined(ARDUINO_ARCH_RP2040)
#include <pgmspace.h>
If I modify line 42 like this:
#include <avr/pgmspace.h>
then the sketch compiles and works as expected.
So it seems that the Pico uses the avr pgmspace, maybe this can be modified in the cpp file
Thanks!
The text was updated successfully, but these errors were encountered: