Closed gbougakov closed 7 years ago
pgmspace.h for esp8266 is located inside cores root direcory, so You need to little mod Adafruit_PCD8544.cpp file and replace (line 20) from:
#include <avr/pgmspace.h>
to:
#if defined ( ESP8266 )
#include <pgmspace.h>
#else
#include <avr/pgmspace.h>
#endif
btw...maybe we must create avr directory for future esp8266 arduino release and move avr specific files to this dir?
@GeorgeBgk you are requesting help for a 3rd party lib, which seems to not support the ESP. Per last comment, feel free to tweak the lib, or request support from the author. Closing per #3655 .
I also have same issue. This is reper7's solution for it. I modified in "***.h" file.
working well.
Fwiw, since at least core 2.4.1 and latest git master, <avr/pgmspace.h> should work.
I am trying to use nokia 5110 screen with my ESP and when I compile my code i receive this:
Basic Infos
Hardware
Hardware: ESP-12 Core Version: 2.1.0-rc2
Description
Problem description
Settings in IDE
Module: NodeMCU 1.0 (ESP-12E Module) Flash Size: 4M CPU Frequency: 80Mhz Flash Mode: ? Flash Frequency: ? Upload Using: SERIAL Reset Method: ?
Sketch
Serial.print("x: "); Serial.print(icons[f][XPOS], DEC); Serial.print(" y: "); Serial.print(icons[f][YPOS], DEC); Serial.print(" dy: "); Serial.println(icons[f][DELTAY], DEC);
// then erase it + move it for (uint8_t f=0; f< NUMFLAKES; f++) { display.drawBitmap(icons[f][XPOS], icons[f][YPOS], logo16_glcd_bmp, w, h, WHITE); // move it icons[f][YPOS] += icons[f][DELTAY]; // if its gone, reinit if (icons[f][YPOS] > display.height()) { icons[f][XPOS] = random(display.width()); icons[f][YPOS] = 0; icons[f][DELTAY] = random(5) + 1; } }
Debug Messages