i got a compile error using your library.

"error: 'cosarray' was not declared in this scope In function 'void closedoors()':"

tools:

Arduino 0017

Arduiniana flash 2.0

code snippets:

#include <Flash.h>

#include <EEPROM.h>

...

void setup(){

FLASH_ARRAY(float, cosarray,

cos(0),cos(4.5),cos(9),cos(13.5),

cos(18),cos(22.5),cos(27),cos(31.5),

cos(36),cos(40.5),cos(45),cos(49.5),

cos(54),cos(58.5),cos(63),cos(67.5),

cos(72),cos(76.5),cos(81),cos(85.5)); //define array of cos(x) in progmem

}

void opendoors(){

...

stepper(int(minDelay + delayVal + cosarray[trajectCounter]*(maxDelay)));

}

i have no idea what goes wrong. FLASH_ARRAY is red, so is recognized by the ide

the next uses a direct paste from http://arduiniana.org/libraries/flash/ and yelds the same error. :-(

#include <Flash.h>

float result = 0;

void setup(){

FLASH_ARRAY(float, temperatures, 23.1, 23.1, 23.2, 23.2, 23.4,

23.7, 25.0, 26.0, 26.8, 28.8, 30.2, 31.9, 33.1, 33.1, 33.2,

33.2, 33.4, 33.7, 35.0, 36.0, 36.8, 38.8, 40.2, 41.9);

}

void loop(){

result = temperatures[4];

}