diff options
Diffstat (limited to 'keyboards/claw44/lib/glcdfont.c')
| -rw-r--r-- | keyboards/claw44/lib/glcdfont.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/keyboards/claw44/lib/glcdfont.c b/keyboards/claw44/lib/glcdfont.c index 9fa1c806a..91f53d9c2 100644 --- a/keyboards/claw44/lib/glcdfont.c +++ b/keyboards/claw44/lib/glcdfont.c | |||
| @@ -1,7 +1,17 @@ | |||
| 1 | // This is the 'classic' fixed-space bitmap font for Adafruit_GFX since 1.0. | 1 | // This is the 'classic' fixed-space bitmap font for Adafruit_GFX since 1.0. |
| 2 | // See gfxfont.h for newer custom bitmap font info. | 2 | // See gfxfont.h for newer custom bitmap font info. |
| 3 | 3 | ||
| 4 | #include "progmem.h" | 4 | #ifndef FONT5X7_H |
| 5 | #define FONT5X7_H | ||
| 6 | |||
| 7 | #ifdef __AVR__ | ||
| 8 | #include <avr/io.h> | ||
| 9 | #include <avr/pgmspace.h> | ||
| 10 | #elif defined(ESP8266) | ||
| 11 | #include <pgmspace.h> | ||
| 12 | #else | ||
| 13 | #define PROGMEM | ||
| 14 | #endif | ||
| 5 | 15 | ||
| 6 | // Standard ASCII 5x7 font | 16 | // Standard ASCII 5x7 font |
| 7 | const unsigned char font[] PROGMEM = { | 17 | const unsigned char font[] PROGMEM = { |
| @@ -230,3 +240,4 @@ const unsigned char font[] PROGMEM = { | |||
| 230 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 240 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 231 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 241 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 232 | }; | 242 | }; |
| 243 | #endif // FONT5X7_H | ||
