Update to support ESP8266

This commit is contained in:
Phillip Burgess committed 2015-06-26 20:42:34 -07:00
1 parent 6d40eb3423
commit 7628b4744a
2 files changed
+8

No files matched your search

+6
View File
@@ -35,10 +35,16 @@ POSSIBILITY OF SUCH DAMAGE.
#include "glcdfont.c"
#ifdef __AVR__
#include <avr/pgmspace.h>
#elif defined(ESP8266)
#include <pgmspace.h>
#else
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#endif
#ifndef min
#define min(a,b) ((a < b) ? a : b)
#endif
Adafruit_GFX::Adafruit_GFX(int16_t w, int16_t h):
WIDTH(w), HEIGHT(h)
{
+2
View File
@@ -4,6 +4,8 @@
#ifdef __AVR__
#include <avr/io.h>
#include <avr/pgmspace.h>
#elif defined(ESP8266)
#include <pgmspace.h>
#else
#define PROGMEM
#endif