Skip to content

Commit

Permalink
Merge pull request #258 from gabrielcsapo/master
Browse files Browse the repository at this point in the history
bug: ARDUINO_ARCH_RP2040 does not include the right pgmspace header
  • Loading branch information
ladyada authored Oct 28, 2024
2 parents 00fa0bd + 6ec47b6 commit ea12e7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Adafruit_SSD1306.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@

#if defined(__AVR__) || defined(ARDUINO_ARCH_RTTHREAD)
#include <avr/pgmspace.h>
#elif defined(ESP8266) || defined(ESP32) || defined(ARDUINO_ARCH_RP2040)
#elif defined(ARDUINO_ARDUINO_NANO33BLE) || \
defined(ARDUINO_ARCH_MBED_RP2040) || defined(ARDUINO_ARCH_RP2040)
#include <api/deprecated-avr-comp/avr/pgmspace.h>
#elif defined(ESP8266) || defined(ESP32)
#include <pgmspace.h>
#else
#define pgm_read_byte(addr) \
Expand Down

0 comments on commit ea12e7d

Please sign in to comment.