date and time are incorrect
Posted: Mon Mar 05, 2012 3:20 pm
it reads 10/02/00 and time is off. code
Code: Select all
// Autogenerated file by RAGen (v1.2.1.158), (03/05/2012 14:24)
// RA_030512_1424.ino
//
// This version designed for v0.9.0 or later
/* The following features are enabled for this File:
#define DisplayImages
#define VersionMenu
#define DisplayLEDPWM
#define wifi
#define SIMPLE_MENU
#define PWMEXPANSION
#define ENABLE_ATO_LOGGING
*/
#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>
void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.FeedingModePorts = Port6Bit | Port7Bit | Port8Bit;
ReefAngel.WaterChangePorts = Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
ReefAngel.OverheatShutoffPorts = Port4Bit;
ReefAngel.LightsOnPorts = Port1Bit | Port2Bit | Port3Bit;
// Ports that are always on
ReefAngel.Relay.On(Port6);
ReefAngel.Relay.On(Port7);
ReefAngel.Relay.On(Port8);
}
void loop()
{
// Specific functions
ReefAngel.StandardLights(Port1);
ReefAngel.MHLights(Port2);
ReefAngel.StandardLights(Port3);
ReefAngel.StandardHeater(Port4);
ReefAngel.SingleATOLow(Port5);
ReefAngel.Relay.Set(Port5,!ReefAngel.HighATO.IsActive());
ReefAngel.PWM.SetActinic(PWMSlope(10,0,23,0,5,75,180,5));
ReefAngel.PWM.SetDaylight(PWMSlope(11,0,21,0,5,65,120,5));
ReefAngel.Portal("miked");
ReefAngel.ShowInterface();
}