summaryrefslogtreecommitdiff
path: root/keyboards/claw44/lib/glcdfont.c
diff options
context:
space:
mode:
authoryfuku <30647434+yfuku@users.noreply.github.com>2020-11-10 14:07:12 +0900
committerGitHub <noreply@github.com>2020-11-10 16:07:12 +1100
commit7595f538562437fa6d13ede5be7a5a4b5d582c6b (patch)
tree8649d7399f8f5c5699a7a07cb85a38840d73cf3c /keyboards/claw44/lib/glcdfont.c
parent8af767cb1d36222a4d0ec8286d346d4896e923d4 (diff)
refactor SPLIT_KEYBOARD, OLED_DRIVER_ENABLE (#10405)
Diffstat (limited to 'keyboards/claw44/lib/glcdfont.c')
-rw-r--r--keyboards/claw44/lib/glcdfont.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/keyboards/claw44/lib/glcdfont.c b/keyboards/claw44/lib/glcdfont.c
index 9fa1c806aa..91f53d9c24 100644
--- a/keyboards/claw44/lib/glcdfont.c
+++ b/keyboards/claw44/lib/glcdfont.c
@@ -1,7 +1,17 @@
// This is the 'classic' fixed-space bitmap font for Adafruit_GFX since 1.0.
// See gfxfont.h for newer custom bitmap font info.
-#include "progmem.h"
+#ifndef FONT5X7_H
+#define FONT5X7_H
+
+#ifdef __AVR__
+ #include <avr/io.h>
+ #include <avr/pgmspace.h>
+#elif defined(ESP8266)
+ #include <pgmspace.h>
+#else
+ #define PROGMEM
+#endif
// Standard ASCII 5x7 font
const unsigned char font[] PROGMEM = {
@@ -230,3 +240,4 @@ const unsigned char font[] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
+#endif // FONT5X7_H