Icecool2's PDE
Posted: Wed Aug 19, 2015 4:44 pm
I'm getting my tank up and running again and to my dismay, I'm having a heck of a time getting my code onto the RA.
First off, my old code no longer compiles with the current version of libraries. No big deal, I used the wizard to write new code. Really basic stuff. BUT it is too big. How is that possible? I can't have the RA do it's basic functions and have the code fit on the thing anymore? Maybe I'm missing something.
Here's my code:
I commented out everything I could think of and I'm still too large.
First off, my old code no longer compiles with the current version of libraries. No big deal, I used the wizard to write new code. Really basic stuff. BUT it is too big. How is that possible? I can't have the RA do it's basic functions and have the code fit on the thing anymore? Maybe I'm missing something.
Here's my code:
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 <Salinity.h>
#include <IO.h>
#include <AI.h>
#include <ReefAngel.h>
////// Place global variable code below here
// Port 1: Return Pump
// Port 2: Dead
// Port 3: Skimmer
// Port 4: Heater
// Port 5: Kessil
// Port 6: Wavemaker
// Port 7: Sump Light
// Port 8: Unused
////// Place global variable code above here
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.AddStandardMenu(); // Add Standard Menu
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port6Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// 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( 869 );
// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Port3 );
ReefAngel.Relay.On( Port7 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardHeater( Port4,751,761 );
ReefAngel.StandardLights( Port5,9,0,19,0 );
//ReefAngel.Wavemaker( Port6,60 );
ReefAngel.PWM.SetDaylight( PWMParabola(11,0,18,0,13,50,13) );
ReefAngel.PWM.SetActinic( PWMParabola(9,0,19,0,13,100,13) );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}