We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d40eb3 commit 7628b47Copy full SHA for 7628b47
Adafruit_GFX.cpp
@@ -35,10 +35,16 @@ POSSIBILITY OF SUCH DAMAGE.
35
#include "glcdfont.c"
36
#ifdef __AVR__
37
#include <avr/pgmspace.h>
38
+#elif defined(ESP8266)
39
+ #include <pgmspace.h>
40
#else
41
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
42
#endif
43
44
+#ifndef min
45
+ #define min(a,b) ((a < b) ? a : b)
46
+#endif
47
+
48
Adafruit_GFX::Adafruit_GFX(int16_t w, int16_t h):
49
WIDTH(w), HEIGHT(h)
50
{
glcdfont.c
@@ -4,6 +4,8 @@
4
5
#include <avr/io.h>
6
7
8
9
10
#define PROGMEM
11
0 commit comments