8.5.2 pgm_read_byte Macro
Read a byte from the program space with a near address.
Include
<avr/pgmspace.h>
Prototype
unsigned char pgm_read_byte(unsigned int);
Remarks
Read a byte from the program space with a 16-bit (near) address.
Example
#include <avr/pgmspace.h>
const unsigned char PROGMEM romObj = 0x55;
int main(void)
{
unsigned char val;
val = pgm_read_byte(&romObj);
}