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
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.