Just upgraded to IDE 1.6.5 and I'm getting compiling errors when using the Average library.
The example provided with the library will compile but the example found on Arduino Playground won't compile.
I've loaded the library manually and with the new automatic functionality with no luck.
Any help would be greatly appreciated!
sketch_sep22b.ino: In function 'void loop()':
sketch_sep22b:21: error: 'mean' was not declared in this scope
sketch_sep22b:23: error: 'mode' was not declared in this scope
sketch_sep22b:25: error: 'maximum' was not declared in this scope
sketch_sep22b:27: error: 'minimum' was not declared in this scope
sketch_sep22b:29: error: 'stddev' was not declared in this scope
'mean' was not declared in this scope
#include <Average.h>
#define CNT 600
int d[CNT];
void setup()
{
Serial.begin(9600);
}
void loop()
{
int i;
for(i=0; i<CNT; i++)
{
d[i] = random(500);
}
Serial.print("Mean: ");
Serial.print(mean(d,CNT),DEC);
Serial.print(" Mode: ");
Serial.print(mode(d,CNT),DEC);
Serial.print(" Max: ");
Serial.print(maximum(d,CNT),DEC);
Serial.print(" Min: ");
Serial.print(minimum(d,CNT),DEC);
Serial.print(" Standard deviation: ");
Serial.print(stddev(d,CNT),4);
Serial.println("");
Serial.println("");
delay(5000);