/* * File: solar.h */ #ifndef SOLAR_H #define SOLAR_H /* Sensors */ #define PANEL 0 #define TANK 1 #define PUMP_ON 1 #define PUMP_OFF 0 /* Outputs*/ #define PUMP 16 //Water pump //EEPROM settings locations #define DELTAON 0 #define DELTAOFF 1 #define DEFROSTTEMP 2 #define DEFROST_OFFSET 10 #define DEFROSTTIME 11 /* LCD Pages */ #define LCD_PAGE_MAIN 0 #define LCD_PAGE_DELTAON 1 #define LCD_PAGE_DELTAOFF 2 #define LCD_PAGE_DEFROST 3 #define LCD_PAGE_PUMP 4 #define LCD_PAGES 4 int lcd_page = LCD_PAGE_MAIN; //Starting LCD page int defrostTemperature; //Temperature to run a defrost cycle int defrostTime; //Time to run defrost bool defrostState = FALSE; bool pumpState = PUMP_OFF; int deltaOn; //Temp to turn on pump int deltaOff; //Temp to turn off pump bool readAnalog = FALSE; int tempPanel; //Temperature of panel int tempTank; //Temperature tank int pumpStep = 0; //Step of pump - 0-100(%) long lastDefrost = 0; unsigned long defrostDelayCount; unsigned long defrostStartTime; #endif /* SOLAR_H */