mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-09-20 17:46:09 -04:00
Added pgm_read_word() def for non-AVR chips
This commit is contained in:
parent
300babdc70
commit
f2e454dcf4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user