Flash.h <SOLVED>

I downloaded the Flash4 library from the link in the playground.

when I try the following:

#include <Flash.h>

FLASH_STRING_ARRAY(myArray, PSTR("Hello"), PSTR("World"));

void setup() {
}
void loop() {
}

The IDE responds with the following:

error: statement-expressions are not allowed outside functions nor in template-argument lists

FLASH_STRING(), FLASH_TABLE() seem to work fine.

Any help would be greatly appreciated. Thanks :slight_smile:

#include <Flash.h>

FLASH_STRING_ARRAY(myArray, "Hello", "World");

void setup() {
}
void loop() {
}

Try this

Thanks, that works,