I am trying to build the TFT_eSPI library on Device OS 5.6.0 on Photon2/P2. The latest challenge is the macro pgm_read_dword is being used, it is not defined in spark_wiring_arduino.h and cannot be replaced with pgm_read_word. Would an addition such as pgm_read_dword (x) ((uint32_t)(*(x))) work?

1 Like

Yes, that should work. The Arduino dword is uint32_t and all Particle devices (STM32, nRF52, and RTL872x) have a linear address space that does not need pgm_read to read flash memory.

1 Like

Thanks - I ended up stripping all these macros out and using * operator. I struggled to understand some of the nested versions - maybe they now don't work! TBC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.