pgmspace.h 281 B

123456789
  1. #ifdef ESP8266
  2. # include "pgmspace.h"
  3. #elif defined(ESP_PLATFORM) && __has_include(<pgm_space.h>)
  4. # include <pgm_space.h>
  5. #else
  6. # define PROGMEM
  7. # define pgm_read_byte(addr) (*(const unsigned char *)(addr))
  8. # define pgm_read_word(addr) (*(const unsigned short *)(addr))
  9. #endif