8.5.4 pgm_read_byte_near Macro
Read a byte from the program space with a near address.
Include
<avr/pgmspace.h>
Prototype
unsigned char pgm_read_byte_near(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_near(&romObj);
}