Trying to code for the first time, looking to have lcd screen display custom names for each port and then have a custom home screen that shows time, date, temp, ph and Kessil A360 intensity and color %, I will also need intensity and color ramping ability. Lights will be here next week so that portion can wait I guess. This is what I have so far
#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.AddStandardMenu(); // Add Standard Menu
ReefAngel.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port2Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port2Bit | Port3Bit | Port4Bit | 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( 830 );
// Ports that are always on
ReefAngel.Relay.On( Port8 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.Relay.DelayedOn( Port1,5 );
ReefAngel.Relay.DelayedOn( Port2,10 );
ReefAngel.StandardLights( Port3,10,0,22,0 );
ReefAngel.StandardLights( Port4,22,0,8,0 );
ReefAngel.StandardHeater( Port7,780,785 );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}
Newbie Custom Screen and Port Labels
Re: Newbie Custom Screen and Port Labels
Port Labels I would like to see:
1:Tunze ATO
2:Aquamaxx HOB-1
3:Kessil A360W
4:Moonlights
5:Ca Doser Pump
6:Alk Doser Pump
7:Heater
8:Return Pump
1:Tunze ATO
2:Aquamaxx HOB-1
3:Kessil A360W
4:Moonlights
5:Ca Doser Pump
6:Alk Doser Pump
7:Heater
8:Return Pump
Re: Newbie Custom Screen and Port Labels
Custom labels done, Thanks!!!!
Now how about the custom screen and thanks in advance
Now how about the custom screen and thanks in advance
Re: Newbie Custom Screen and Port Labels
Custom Port names was no problem, this was like reading a different language.