Code: Select all
InternalMemory.IMCheck_write(0xCF06A31E);
Code: Select all
InternalMemory.IMCheck_write(0xCF06A31E);
Code: Select all
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <AI.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <Salinity.h>
#include <PH.h>
#include <WaterLevel.h>
#include <ReefAngel.h>
void setup()
{
InternalMemory.MHOnHour_write(15);
InternalMemory.MHOnMinute_write(30);
InternalMemory.MHOffHour_write(21);
InternalMemory.MHOffMinute_write(0);
InternalMemory.MHDelay_write(7);
InternalMemory.StdLightsOnHour_write(14);
InternalMemory.StdLightsOnMinute_write(0);
InternalMemory.StdLightsOffHour_write(21);
InternalMemory.StdLightsOffMinute_write(30);
InternalMemory.DP1OnHour_write(20);
InternalMemory.DP1OnMinute_write(0);
InternalMemory.DP2OnHour_write(22);
InternalMemory.DP2OnMinute_write(30);
InternalMemory.DP1Timer_write(4);
InternalMemory.DP2Timer_write(4);
InternalMemory.DP1RepeatInterval_write(60);
InternalMemory.DP2RepeatInterval_write(60);
InternalMemory.ATOHourInterval_write(0);
InternalMemory.FeedingTimer_write(900);
InternalMemory.LCDTimer_write(600);
InternalMemory.LEDPWMActinic_write(20);
InternalMemory.LEDPWMDaylight_write(20);
InternalMemory.WM1Timer_write(10);
InternalMemory.WM2Timer_write(15);
InternalMemory.HeaterTempOn_write(766);
InternalMemory.HeaterTempOff_write(770);
InternalMemory.ChillerTempOn_write(774);
InternalMemory.ChillerTempOff_write(770);
InternalMemory.OverheatTemp_write(1500);
InternalMemory.PHMax_write(830);
InternalMemory.PHMin_write(540);
InternalMemory.SalMax_write(2550);
InternalMemory.ORPMax_write(285);
InternalMemory.ORPMin_write(1400);
InternalMemory.RFMode_write(Constant);
InternalMemory.RFSpeed_write(50);
InternalMemory.RFDuration_write(8);
InternalMemory.RFDuration_write(8);
InternalMemory.PWMSlopeStartD_write(15);
InternalMemory.PWMSlopeEndD_write(100);
InternalMemory.PWMSlopeDurationD_write(60);
InternalMemory.PWMSlopeStartA_write(15);
InternalMemory.PWMSlopeEndA_write(100);
InternalMemory.PWMSlopeDurationA_write(60);
InternalMemory.PWMSlopeStart0_write(15);
InternalMemory.PWMSlopeEnd0_write(100);
InternalMemory.PWMSlopeDuration0_write(60);
InternalMemory.PWMSlopeStart1_write(15);
InternalMemory.PWMSlopeEnd1_write(100);
InternalMemory.PWMSlopeDuration1_write(60);
InternalMemory.PWMSlopeStart2_write(15);
InternalMemory.PWMSlopeEnd2_write(100);
InternalMemory.PWMSlopeDuration2_write(60);
InternalMemory.PWMSlopeStart3_write(15);
InternalMemory.PWMSlopeEnd3_write(100);
InternalMemory.PWMSlopeDuration3_write(60);
InternalMemory.PWMSlopeStart4_write(15);
InternalMemory.PWMSlopeEnd4_write(100);
InternalMemory.PWMSlopeDuration4_write(60);
InternalMemory.PWMSlopeStart5_write(15);
InternalMemory.PWMSlopeEnd5_write(100);
InternalMemory.PWMSlopeDuration5_write(60);
InternalMemory.ATOExtendedTimeout_write(120);
InternalMemory.ORPMin_write(2050);
InternalMemory.ORPMax_write(450);
InternalMemory.ActinicOffset_write(30);
InternalMemory.CO2ControlOn_write(770);
InternalMemory.CO2ControlOff_write(760);
InternalMemory.PHControlOn_write(800);
InternalMemory.PHControlOff_write(810);
InternalMemory.AISlopeStartW_write(0);
InternalMemory.AISlopeEndW_write(100);
InternalMemory.AISlopeDurationW_write(60);
InternalMemory.AISlopeStartB_write(0);
InternalMemory.AISlopeEndB_write(100);
InternalMemory.AISlopeDurationB_write(60);
InternalMemory.AISlopeStartRB_write(0);
InternalMemory.AISlopeEndRB_write(100);
InternalMemory.AISlopeDurationRB_write(60);
InternalMemory.RadionSlopeStartW_write(0);
InternalMemory.RadionSlopeEndW_write(100);
InternalMemory.RadionSlopeDurationW_write(60);
InternalMemory.RadionSlopeStartRB_write(0);
InternalMemory.RadionSlopeEndRB_write(100);
InternalMemory.RadionSlopeDurationRB_write(60);
InternalMemory.RadionSlopeStartR_write(0);
InternalMemory.RadionSlopeEndR_write(100);
InternalMemory.RadionSlopeDurationR_write(60);
InternalMemory.RadionSlopeStartG_write(0);
InternalMemory.RadionSlopeEndG_write(100);
InternalMemory.RadionSlopeDurationG_write(60);
InternalMemory.RadionSlopeStartB_write(0);
InternalMemory.RadionSlopeEndB_write(100);
InternalMemory.RadionSlopeDurationB_write(60);
InternalMemory.RadionSlopeStartI_write(0);
InternalMemory.RadionSlopeEndI_write(100);
InternalMemory.RadionSlopeDurationI_write(60);
InternalMemory.DelayedStart_write(7);
InternalMemory.PHExpMax_write(2500);
InternalMemory.PHExpMin_write(500);
InternalMemory.WaterLevelMax_write(3575);
InternalMemory.WaterLevelMin_write(2875);
InternalMemory.SalTempComp_write(750);
InternalMemory.WaterLevelLow_write(60);
InternalMemory.WaterLevelHigh_write(65);
InternalMemory.DP3Timer_write(4);
InternalMemory.DP3RepeatInterval_write(60);
InternalMemory.DCPumpMode_write(0);
InternalMemory.DCPumpSpeed_write(50);
InternalMemory.DCPumpDuration_write(50);
InternalMemory.WaterLevel1Max_write(1900);
InternalMemory.WaterLevel1Min_write(590);
InternalMemory.WaterLevel2Max_write(1900);
InternalMemory.WaterLevel2Min_write(590);
InternalMemory.WaterLevel3Max_write(1900);
InternalMemory.WaterLevel3Min_write(590);
InternalMemory.WaterLevel4Max_write(1900);
InternalMemory.WaterLevel4Min_write(590);
InternalMemory.IMCheck_write(0xCF06A31E);
ReefAngel.Init();
ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+20, MENU_START_ROW*3, "Memory Updated");
ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+25, MENU_START_ROW*6, "You can now");
ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+25, MENU_START_ROW*7, "upload your");
ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+33, MENU_START_ROW*8, "INO code") ;
}
void loop()
{
wdt_reset();
}
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.h>
#include <PAR.h>
#include <ReefAngel.h>
////// Place global variable code below here
////// Place global variable code above here
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.SetTemperatureUnit( Celsius ); // set to Celsius Temperature
ReefAngel.AddStandardMenu(); // Add Standard Menu
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port7Bit | Port8Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 280 );
// Ports that are always on
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port7 );
ReefAngel.Relay.On( Port8 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardHeater( Port1,245,260 );
ReefAngel.DosingPumpRepeat( Port2,0,60,60 );
ReefAngel.CO2Control( Port3,701,699 );
ReefAngel.StandardATO( Port4,300 );
ReefAngel.StandardLights( Port6,11,0,23,0 );
ReefAngel.PWM.SetDaylight( PWMParabola(11,0,22,0,15,100,15) );
ReefAngel.PWM.SetActinic( PWMParabola(10,0,23,0,15,100,15) );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}
then upload nothing////// Place your custom code below here
ReefAngel.AddDateTimeMenu();
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();