Pages: [1]   Go Down
Author Topic: Flash.h <SOLVED>  (Read 397 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley
« Last Edit: November 15, 2012, 12:41:03 am by NobleNoob » Logged

Offline Offline
Full Member
***
Karma: 4
Posts: 187
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
#include <Flash.h>

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

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

Try this
Logged

From Idea To Invention

Offline Offline
Newbie
*
Karma: 1
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, that works,
Logged

Pages: [1]   Go Up
Jump to: