LedControl
LedControl copied to clipboard
Doesnt work with esp8266 based boards
In file included from C:\Users\richard\Documents\Arduino\libraries\LedControl\src\LedControl.cpp:28:0: C:\Users\richard\Documents\Arduino\libraries\LedControl\src\LedControl.h:30:26: fatal error: avr/pgmspace.h: No such file or directory #include <avr/pgmspace.h> ^ compilation terminated. Error compiling.
remove this line from LedControl.h, then it works great (obviously its not an AVR chip):
#include <avr/pgmspace.h>
https://github.com/wayoda/LedControl/blob/master/src/LedControl.h#L30
To save everyone looking this up, would it possible for this very useful library to have the following context diff applied? Thanks.
actually this is the proper fix, as it still lets pgmspace work with the esp8266 for 7-segment displays (its not needed for led matrices):
https://github.com/sej7278/LedControl/commit/d82d522791b805ebaebe926c45ca18a1ba35a3cc
Using this for a 7-segment display this worked fine. Thanks!
I second this! @sej7278 fix worked great!
#if (defined(AVR)) #include <avr\pgmspace.h> #else #include <pgmspace.h> #endif
@wayoda don't You have time to repair this ? :( This is great https://github.com/wayoda/LedControl/issues/10#issuecomment-290219444