Macros
Référence du fichier Adafruit_GFX.cpp
#include "Adafruit_GFX.h"
#include "glcdfont.c"

Macros

#define pgm_read_byte(addr)   (*(const unsigned char *)(addr))
 
#define pgm_read_word(addr)   (*(const unsigned short *)(addr))
 
#define pgm_read_dword(addr)   (*(const unsigned long *)(addr))
 
#define pgm_read_pointer(addr)   ((void *)pgm_read_dword(addr))
 
#define min(a, b)   (((a) < (b)) ? (a) : (b))
 
#define _swap_int16_t(a, b)   { int16_t t = a; a = b; b = t; }
 

Documentation des macros

◆ _swap_int16_t

#define _swap_int16_t (   a,
 
)    { int16_t t = a; a = b; b = t; }

◆ min

#define min (   a,
 
)    (((a) < (b)) ? (a) : (b))

◆ pgm_read_byte

#define pgm_read_byte (   addr)    (*(const unsigned char *)(addr))

◆ pgm_read_dword

#define pgm_read_dword (   addr)    (*(const unsigned long *)(addr))

◆ pgm_read_pointer

#define pgm_read_pointer (   addr)    ((void *)pgm_read_dword(addr))

◆ pgm_read_word

#define pgm_read_word (   addr)    (*(const unsigned short *)(addr))