I need to save the data to the Arduino array() at a certain time delay(500) and then have a second delay time delay(2000) that these data stored in array lists and arrays reset for the new store.
How can I accomplish this?
This not worked:
volatile unsigned long data=0;
double getGust()
{
unsigned long reading=anem_min;
data[]=(1/(reading/1000000.0));
delay(500);
return data;
}
void loop() {
Serial.print(getGust());
Serial.println("");
data=0;
delay(2000);
}