constant sketch too big
Posted: Mon Dec 07, 2015 5:37 pm
Hi,
I have had my code the same for over a year now. I used the wizard to try and tweak my heater timer settings. No matter what I do every sketch is saying it's too large. This is with both using in internal memory or in the code setting with the wizard.
The only thing that has changed is my pc is now on windows 10 - which somehow caused me to lose my old sketch settings. Mybe the ttl cable is not connecting? I hear my pc recognize it though.
here is an example:
#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.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port3Bit | Port5Bit | Port6Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port2Bit | Port3Bit | Port4Bit | Port7Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | Port3Bit | Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 840 );
// Ports that are always on
ReefAngel.Relay.On( Port1 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardFan( Port2,780,790 );
ReefAngel.StandardLights( Port3,12,0,20,0 );
ReefAngel.StandardLights( Port4,10,30,20,30 );
ReefAngel.StandardFan( Port5,785,795 );
ReefAngel.StandardLights( Port6,6,0,1,0 );
ReefAngel.Relay.Set( Port7, !ReefAngel.Relay.Status( Port4 ) );
ReefAngel.StandardHeater( Port8,780,790 );
ReefAngel.PWM.SetDaylight( PWMSlope(12,0,20,0,15,70,30,15) );
ReefAngel.PWM.SetActinic( PWMSlope(10,30,20,30,15,100,30,15) );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "marvollo" );
ReefAngel.ShowInterface();
}
I have had my code the same for over a year now. I used the wizard to try and tweak my heater timer settings. No matter what I do every sketch is saying it's too large. This is with both using in internal memory or in the code setting with the wizard.
The only thing that has changed is my pc is now on windows 10 - which somehow caused me to lose my old sketch settings. Mybe the ttl cable is not connecting? I hear my pc recognize it though.
here is an example:
#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.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port3Bit | Port5Bit | Port6Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port2Bit | Port3Bit | Port4Bit | Port7Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | Port3Bit | Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 840 );
// Ports that are always on
ReefAngel.Relay.On( Port1 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardFan( Port2,780,790 );
ReefAngel.StandardLights( Port3,12,0,20,0 );
ReefAngel.StandardLights( Port4,10,30,20,30 );
ReefAngel.StandardFan( Port5,785,795 );
ReefAngel.StandardLights( Port6,6,0,1,0 );
ReefAngel.Relay.Set( Port7, !ReefAngel.Relay.Status( Port4 ) );
ReefAngel.StandardHeater( Port8,780,790 );
ReefAngel.PWM.SetDaylight( PWMSlope(12,0,20,0,15,70,30,15) );
ReefAngel.PWM.SetActinic( PWMSlope(10,30,20,30,15,100,30,15) );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "marvollo" );
ReefAngel.ShowInterface();
}