FLASH-lib for Arduino

hello.
I'm trying to use the flash lib in the code below but I get some errors that I think have to do with the lib.
I downloaded and put in the folder of the Arduino libraries. Added the lib but still got errors.
Can someone tell me how can I solve this?

#include <Flash.h>
int x = 0;

void setup(){
  FLASH_ARRAY(int, value, 1, 2, 2, 5, 6, 7, 10);
}

void loop(){
  x = value[1];
}

ERRORS:

sketch_nov07a.ino: In function 'void setup()':
sketch_nov07a:6: error: expected primary-expression before 'int'
sketch_nov07a:6: error: 'value' was not declared in this scope
sketch_nov07a:6: error: 'FLASH_ARRAY' was not declared in this scope
sketch_nov07a.ino: In function 'void loop()':
sketch_nov07a:10: error: 'value' was not declared in this scope

thank you

I downloaded and put in the folder of the Arduino libraries.

From where? Where did you put it? "In the right place" is the wrong answer.

You can see in the attached image where I put the lib.

I downloaded the lib in Flash | Arduiniana

After that did include the lib in the programming window, and when compiling one of the examples of the lib program returns me errors that indicated above.

Thanks

Sem Título.png

The Name of the folder should be Flash , and not Flash4.

FLASH_ARRAY should be global (outside setup), take a look at the examples

Thanks a lot :wink:

It works.
Even noticed that they had the same name and therefore was giving error in compilation.
I made the changes and it is amazing.

Thank you