flash memory (PROGMEM) only getting 8bit HEX back not 16 bit

I have placed 16 bit hex code into the flash using the PROGMEM function:

const unsigned short pacman[0x2774] PROGMEM ={ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, etc...

but when I use this function to retrieve it

"uint16_t colour = pgm_read_byte_near(pacman + i);"

I only get 8 bit hex back. (used serial.print to view the code)

what am I doing wrong?

pgm_read_byte

Does that not tell you anything?

Hex is a human readable representation of binary numbers, which you placed in EEPROM.

you need pgm_read_word_near()

Thank you for your reply.

I figured it out before you answered, there was a moment of joy before the swearing begun. :slight_smile:

im still farly new to programming.