adafruit / Adafruit_SSD1306

Arduino library for SSD1306 monochrome 128x64 and 128x32 OLEDs
http://www.adafruit.com/category/63_98
Other
1.81k stars 984 forks source link

Won't compile for RP2040 due to pgm_read_byte macro #239

Closed caternuson closed 2 years ago

caternuson commented 2 years ago

Re this thread: https://forums.adafruit.com/viewtopic.php?f=57&t=189849

Can recreate by attempting to compile any library example for any RP2040 target board from earlephilhower core.

Looks like the preproc logic needs some updating to just #include <pgmspace.h> for RP2040: https://github.com/adafruit/Adafruit_SSD1306/blob/d6db01d87fe5cff5649993f1c6c3064db6a09ec7/Adafruit_SSD1306.cpp#L39-L46

ladyada commented 2 years ago

erg ok wanna add and also add rp2040 to the CI list?

caternuson commented 2 years ago

Fixed with #240