Playing with Arduino
A page to record my playing with Arduino
pgm_read_byte()

Abstract

The pgm_read_byte() is a macro that read a word of data stored in a specified address(PROGMEM area).

Source Code

The pgm_read_word() is defined in hardware/tools/avr/avr/include/avr/pgmspace.h as below.

1
#define pgm_read_word(address_short)    pgm_read_word_near(address_short)

The input is address_short and calls the pgm_read_byte_near() macro.

Version

Arduino 1.8.13/avr-gcc 7.3.0-atmel3.6.1-arduino

Last Update

June 19, 2020

inserted by FC2 system