OK, the download should be available again.
On the forum is a thread "h:16: error: expected ',' or '...' before numeric" which might indicate that PGM_P or DATA has been redefined somewhere ?
Further : since the problem seems to be with PGM_P, you might try below code (adapted from an example in
http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_rom_array).
Should work with the <arduino.h> include as well as with the <avr/pgmspace.h>
//#include <avr/pgmspace.h>
#include <arduino.h>
const char foo[] PROGMEM = "Foo";
const char bar[] PROGMEM = "Bar";
PGM_P array[2] PROGMEM = {
foo,
bar
};
char buf[32];
void setup()
{
Serial.begin(9600);
}
void loop()
{
PGM_P p;
memcpy_P(&p, &array[0], sizeof(PGM_P));
strcpy_P(buf, p);
Serial.println(buf);
memcpy_P(&p, &array[1], sizeof(PGM_P));
strcpy_P(buf, p);
Serial.println(buf);
delay(1000);
}
Wim