Skip to content
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

library incompatible with ESP8266 (fixes included) #1

Open
gschintgen opened this issue Dec 15, 2017 · 1 comment
Open

library incompatible with ESP8266 (fixes included) #1

gschintgen opened this issue Dec 15, 2017 · 1 comment

Comments

@gschintgen
Copy link

Hi,
I'm not sure if this library is still maintained. Still, I'd like to let you know that in its current state it's incompatible with ESP8266 based boards. The compiler complains about a missing <avr/pgmspace.h>
header file. In fact, for non-avr boards like the ESP8266, the correct header is simply <pgmspace.h>.
You could add support for those boards by replacing the #include directive by the following code:

#if (defined(__AVR__))
#include <avr\pgmspace.h>
#else
#include <pgmspace.h>
#endif

A second issue that came up is that the SPI frequency was set too high (100 MHz instead of the maximum 10 Mhz that the MAX7219 accepts according to its datasheet). Simply dropping a zero in line 207 fixes it:

SPI.beginTransaction(SPISettings(10000000, MSBFIRST, SPI_MODE0));

For the record, I'm using a Wemos D1 Mini to drive a common 4-in-1 module of 4 daisy-chained 8x8 red led matrices.

Anyway thanks for your library and have a nice holiday season.

jonathanhagler added a commit to jonathanhagler/Deadlands-Player-Enemy-Tracker-Controller that referenced this issue Oct 29, 2018
@Stardisk
Copy link

THANK YOU @gschintgen
Your fixes work for WEMOS D1 R2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants