I have a class that contains an array of [8][1440] for a total of 11,520 bytes. I'm using a Mega2560. When I change the array to static, I get the error "Error creating .elf". I'm very new to Arduino. What am I doing wrong and how can I fix it? Here is the .h class file:
// MainValves.h
#ifndef _MAINVALVES_h
#define _MAINVALVES_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
class MainValvesClass
{
protected:
static char valveArray[8][1440];
public:
void init();
void SetValveData(int, int, int, int);
bool GetValveStatus(int day, int valve, int minute);
};
extern MainValvesClass MainValves;
#endif