Hi Curt.
Thanks for your help.
I did the changes, but the error persists.
My full code:
Code: Select all
// Autogenerated file by RAGen (v1.0.4.93), (05/29/2011 16:52)
// RA_052911_1652.pde
//
// This version designed for v0.8.5 Beta 12 or later
/* The following features are enabled for this PDE File:
#define DisplayImages
#define DateTimeSetup
#define VersionMenu
#define ATOSetup
#define DirectTempSensor
#define wifi
#define SingleATOSetup
#define StandardLightSetup
*/
#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>
// Labels for the web banner
#include <avr/pgmspace.h>
prog_char id_label[] PROGMEM = "phanashiro";
prog_char probe1_label[] PROGMEM = "Display";
prog_char probe2_label[] PROGMEM = "Room";
prog_char probe3_label[] PROGMEM = "Light";
prog_char relay1_label[] PROGMEM = "Light";
prog_char relay2_label[] PROGMEM = "Moon%20Light";
prog_char relay3_label[] PROGMEM = "Heater";
prog_char relay4_label[] PROGMEM = "Chiller";
prog_char relay5_label[] PROGMEM = "ATO";
prog_char relay6_label[] PROGMEM = "Dosing%20Balling%201";
prog_char relay7_label[] PROGMEM = "Dosing%20Balling%202";
prog_char relay8_label[] PROGMEM = "Dosing%20Balling%203";
PROGMEM const char *webbanner_items[] = {
id_label, probe1_label, probe2_label, probe3_label, relay1_label, relay2_label,
relay3_label, relay4_label, relay5_label, relay6_label, relay7_label, relay8_label};
void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.SetTemperatureUnit(1); // set to Celsius Temperature
// Initialize and start the web banner timer
ReefAngel.LoadWebBanner(pgm_read_word(&(webbanner_items[0])), SIZE(webbanner_items));
ReefAngel.Timer[4].SetInterval(180); // set interval to 180 seconds
ReefAngel.Timer[4].Start();
ReefAngel.FeedingModePorts = B00000000;
ReefAngel.WaterChangePorts = B00000000;
ReefAngel.OverheatShutoffPorts = B00000001;
ReefAngel.LightsOnPorts = B00000001;
// Ports that are always on
// ReefAngel.Relay.On(Port8);
}
void loop()
{
ReefAngel.ShowInterface();
// Specific functions
ReefAngel.StandardLights(Port1, 12, 00, 24, 00);
ReefAngel.StandardLights(Port2, 24, 00, 8, 00);
ReefAngel.StandardHeater(Port3, 23, 26);
ReefAngel.StandardFan(Port4, 27, 29);
ReefAngel.StandardATO(Port5, 2400); //Quantidade de segundos para reposição, se desligar pelo timer, led vermelho do RA acende e bloqueia a reposição
ReefAngel.DosingPump(Port6, 1, 9, 0, 50); //(byte DPRelay, byte DPTimer, byte OnHour, byte OnMinute, byte RunTime)
ReefAngel.DosingPump(Port7, 1, 12, 0, 50);
ReefAngel.DosingPump(Port8, 1, 15, 0, 50);
// Web Banner stuff
if(ReefAngel.Timer[4].IsTriggered())
{
ReefAngel.Timer[4].Start();
ReefAngel.WebBanner();
}
}
How long does it take to have the banner available?
Could it be anything related to refresh?
Thanks again.
Paulo