That would be correct since I haven't defined a custom menu, but I wasn't really ready to take that on yet; just wanted to get my regular code working again so I could begin programming for the new ports. When I attempted to remove references to the custom menu, I now get "too big" error.
Read a few of the posts about Arduino being a hog, tried that...no avail. Please help.
Code: Select all
// Autogenerated file by RAGen (v1.2.1.158), (02/17/2012 22:55)
// RA_021712_2255.ino
// Current Prod Code
// This version designed for v0.9.0 or later
/* The following features are enabled for this File:
#define DateTimeSetup
#define DirectTempSensor
#define DisplayLEDPWM
#define wifi
#define SIMPLE_MENU
#define RelayExp
*/
#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 <ReefAngel.h>
/*
Ports assignment:
Port1 - Reservoir Heater
Port2 - Standard Lights
Port3 - Moon Lights
Port4 - Refugium Pumps
Port5 - WaveMaker One
Port6 - WaveMaker Two
Port7 - Heater
Port8 - Return Pump
*/
void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.FeedingModePorts = Port4Bit | Port5Bit | Port6Bit | Port8Bit; // Turn off Port4, Port 5, Port 6, Port8 when feeding mode is activated
ReefAngel.WaterChangePorts = Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit; // Turn off Port4, Port5, Port6, Port7 and Port8 when water change mode is activated
ReefAngel.TempProbe = T2_PROBE; // Set the 1st plug (which acts like the 2nd plug)
ReefAngel.OverheatProbe = T2_PROBE; // to monitor the overheat and temperatures
ReefAngel.Relay.On(Port8); // Turn on Pump
}
void loop()
{
// Specific functions
ReefAngel.StandardLights(Port2,8,00,23,00); // Regular Lights on at 8:00am and off at 11:00pm
ReefAngel.StandardLights(Port3,00,30,03,30); // Moon Lights on at 12:30pm and off at 11:30pm
ReefAngel.Wavemaker1(Port5);
ReefAngel.Wavemaker2(Port6);
ReefAngel.StandardHeater(Port7);
ReefAngel.WavemakerRandom(Port5,15,60); // Turn Port5 on/off random cycles that lasts from 15 to 60 secs
ReefAngel.Relay.Set(Port6,!ReefAngel.Relay.Status(Port5)); // Turn Port6 on/off on opposite cycle as Port 5
// Port 5 and 6 are synchronized.
// They work in opposing motion of each other at random times.
// turn on port 7 when temp falls below 76.0 and turn off when temp gets above 80.0
if (ReefAngel.Params.Temp[T2_PROBE] <= 780 && ReefAngel.Params.Temp[T2_PROBE] > 0) ReefAngel.Relay.On(Port7);
if (ReefAngel.Params.Temp[T2_PROBE] >= 791) ReefAngel.Relay.Off(Port7);
if (ReefAngel.Params.Temp[T1_PROBE] <= 780 && ReefAngel.Params.Temp[T1_PROBE] > 0) ReefAngel.Relay.On(Port1);
if (ReefAngel.Params.Temp[T1_PROBE] >= 791) ReefAngel.Relay.Off(Port1);
ReefAngel.Portal("rossbryant1956");
ReefAngel.ShowInterface();
}