-
Notifications
You must be signed in to change notification settings - Fork 224
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
ESP8266 support #28
Comments
You are welcome to try this fork modified for the ESP8266. https://github.com/bbx10/Adafruit-PCD8544-Nokia-5110-LCD-library |
@bbx10 : Thanks your fork works! As done with the GFX lib it would be cool if the Adafruit PCD8544 lib could be modified as well. |
@bbx10 works for me too. Thanks! |
Hi! When i compile and upload example code "pcdtest" i get on serial console: ` ets Jan 8 2013,rst cause:4, boot mode:(3,6) wdt reset |
@canislupus11 Did you change the pins in the example? |
No. But I should? |
@canislupus11 Obviously. |
@canislupus11 I replied to your message on esp8266.com. |
When I run you pcdtest sketch it produces a fatal error: Arduino\libraries\Adafruit_PCD8544\Adafruit_PCD8544.cpp:20:26: fatal error: avr/pgmspace.h: No such file or directory I changed the pins to match my hardware. Do I have to define something else to make this work on ESP8266? |
@moxy-bc: did you grab the esp8266 - branch of bbx10's version of the library, or did you just grab the master - branch? (git clone -b esp8266 https://github.com/bbx10/Adafruit-PCD8544-Nokia-5110-LCD-library.git) |
The Library https://github.com/bbx10/Adafruit-PCD8544-Nokia-5110-LCD-library.git did not work!
when I fixed it with:
It comes with this error:
|
@moeins You didn't grab the esp8266 - branch, you grabbed the master - branch. |
Ok, I got it.
|
Hi All, I'm using @WereCatf fork, using the correct esp8266 branch and the example works fine when I have it wired up. When I tried to use it another sketch it was crashing on display.begin(), after a lot of commenting out I narrowed it down to line Wifi.begin(ssid, pass) in my own sketch. If this line is in my sketch (either before or after calling display.begin() the crash happened. `Exception (9): ctx: cont
Has anyone else ran into this? Esp8266 will try to connect to your last used credentials so removing the Wifi.begin is an option on a board that I have already programmed my credentials on but to use display on a new esp8266 I'm going to first have to write another sketch to it first (which is not the end of the world or anything!) You can recreate by adding the following to the example:
Thanks for the work on the library, other than this it works great! I'm using an official wemos mini board. |
Nothing worked for me, seems Adafuit library and ESP8266 don't like each other... no workaround let program compile. Finally I switched to other 5110 library (not the best as doesn't support little fonts) but got it compiled and worked. Normally Adafruit libraries are tricky to implement or maybe hardware specific. |
@WereCatf branch works for me on the esp8266 with the latest release version of esp8266 core |
OK, maybe need to update core library. using NodeMCU 1.0, give it a try again today. Thanks @WereCatf |
The link posted above by bbx10 is the wrong link - it isn't modified for the esp8266. Here is a link to his/her esp8266-specific branch (have compiled it, but haven't tried running it): |
@innesm |
when i run pcdtest example, i am having the NodeMCU 0.9 (ESP-12 Module) compiling error. I've already dowloaded it from board manager. I've used ESP8266WiFi.h library. Where is the problem? `#include <SPI.h> Adafruit_PCD8544 display = Adafruit_PCD8544(D0, D1, D2); #define NUMFLAKES 10 static const unsigned char PROGMEM logo16_glcd_bmp[] = void setup() { display.begin(); display.setContrast(50); testdrawbitmap(logo16_glcd_bmp, LOGO16_GLCD_WIDTH, LOGO16_GLCD_HEIGHT); void loop() { } |
Nothing worked for me, errors occurred error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'PortReg* {aka volatile unsigned char*}' in assignment |
Error gone by type casting every line |
this should be fixed now with the move to busio! |
Is the Adafruit-PCD8544-Nokia-5110-LCD lib already fully ESP8266 compatible?
Following lines for example have caused a compiler issue (Adafruit_PCD8544.cpp 193ff.)
The text was updated successfully, but these errors were encountered: