Go Down

Topic: Flash.h <SOLVED> (Read 472 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy