Go Down

Topic: Flash.h <SOLVED> (Read 426 times) previous topic - next topic

NobleNoob

Nov 15, 2012, 06:31 am Last Edit: Nov 15, 2012, 06:41 am by NobleNoob Reason: 1
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 :)

Cybernetician

Code: [Select]
#include <Flash.h>

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

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


Try this
From Idea To Invention

NobleNoob

Thanks, that works,

Go Up