lnevo wrote:Can you post the code you attempted to compile?
Here is the quick throw together code. My current code is in the first post. I feel like it is something stupid I am missing.
(I want a bigger monitor, no, make that two bigger monitors.) I do like the fact that my current set up has three different "modes" for different times of day. If you figure out my issue with the libraries, then would you please tell me how to do my different modes your way? The more I learn now the better off I will be.
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 <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.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 = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
// 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( 805 );
// Feeeding and Water Change mode speed
ReefAngel.DCPump.FeedingSpeed=0;
ReefAngel.DCPump.WaterChangeSpeed=0;
// Ports that are always on
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardLights( Port1,17,0,17,2 );
ReefAngel.StandardLights( Port2,19,0,19,1 );
ReefAngel.StandardLights( Port3,19,2,19,5 );
ReefAngel.StandardHeater( Port4,773,776 );
ReefAngel.StandardFan( Port5,781,785 );
ReefAngel.StandardLights( Port6,9,0,20,0 );
ReefAngel.StandardLights( Port7,8,30,20,30 );
ReefAngel.StandardLights( Port8,8,29,20,31 );
ReefAngel.PWM.SetDaylight( PWMSlope(9,0,20,0,0,90,60,0) );
ReefAngel.PWM.SetActinic( PWMSlope(8,30,20,30,0,90,60,0) );
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode( TidalSwell,65,10 );
ReefAngel.DCPump.DaylightChannel = None;
ReefAngel.DCPump.ActinicChannel = None;
ReefAngel.DCPump.LowATOChannel = Sync;
ReefAngel.DCPump.HighATOChannel = AntiSync;
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "GiraffeCat" , "passwordgoeshere");
ReefAngel.ShowInterface();
}
Thanks,
GC
.....Your forefathers wisely set aside their compassion - Steeled themselves for what needed to be done.......