diff --git a/src/LedControl.h b/src/LedControl.h index cdfaa1f5..d62263c1 100644 --- a/src/LedControl.h +++ b/src/LedControl.h @@ -27,7 +27,13 @@ #ifndef LedControl_h #define LedControl_h +//-------------------- +#if (defined(__AVR__)) #include +#else // make the library compatible with ESP8266 modules +#include // thanks to Ikarisan +#endif // https://github.com/SodaqMoja/Sodaq_DS3231/issues/5 +//-------------------- #if (ARDUINO >= 100) #include @@ -41,21 +47,21 @@ */ const static byte charTable [] PROGMEM = { B01111110,B00110000,B01101101,B01111001,B00110011,B01011011,B01011111,B01110000, - B01111111,B01111011,B01110111,B00011111,B00001101,B00111101,B01001111,B01000111, - B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, + B01111111,B01111011,B01110111,B00011111,B00001101,B00111101,B01001111,B01000111, B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, + B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, B00000000,B00000000,B00000000,B00000000,B10000000,B00000001,B10000000,B00000000, B01111110,B00110000,B01101101,B01111001,B00110011,B01011011,B01011111,B01110000, B01111111,B01111011,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, - B00000000,B01110111,B00011111,B00001101,B00111101,B01001111,B01000111,B00000000, - B00110111,B00000000,B00000000,B00000000,B00001110,B00000000,B00000000,B00000000, - B01100111,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, - B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001000, - B00000000,B01110111,B00011111,B00001101,B00111101,B01001111,B01000111,B00000000, - B00110111,B00000000,B00000000,B00000000,B00001110,B00000000,B00010101,B00011101, - B01100111,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, - B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000 + B00000000,B01110111,B00011111,B00001101,B00111101,B01001111,B01000111,B01011110, + B00110111,B00010000,B00111100,B00000000,B00001110,B00000000,B00010101,B00011101, + B01100111,B00000000,B00000101,B00000000,B00000111,B00011100,B00000000,B00000000, + B00000000,B00111011,B00000000,B00000000,B00000000,B00000000,B00000000,B00001000, + B00000000,B01110111,B00011111,B00001101,B00111101,B01001111,B01000111,B01011110, + B00110111,B00010000,B00111100,B00000000,B00001110,B00000000,B00010101,B00011101, + B01100111,B00000000,B00000101,B00000000,B00000111,B00011100,B00000000,B00000000, + B00000000,B00111011,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000 }; class LedControl {