Closed Jaycar-Electronics closed 3 years ago
PROGMEM
? @Jaycar-Electronics What platform are you testing?
ah good point, this is for atmega / arduino based code.
So it is better to add a macro definition to determine whether it is an AVR platform or not, because arduino also has platforms such as ARM and ESP. @Jaycar-Electronics
yep, added now; ESP32 and ESP8266 both have macros for PROGMEM and will compile successfully. anything else will just use dynamic version.
Thanks
Changing the structure of the array removes it from global dynamic memory and places in PROGMEM.
this means programs can include more things, such as when using screens, as more of the dynamic memory is saved to handle bigger objects and data.