Skip to content

Commit

Permalink
Added pgm_read_word() def for non-AVR chips
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Dec 25, 2015
1 parent 300babd commit f2e454d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Adafruit_GFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <pgmspace.h>
#else
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#define pgm_read_word(addr) (*(const unsigned short *)(addr))
#endif

#ifndef min
Expand Down

0 comments on commit f2e454d

Please sign in to comment.