Newbie Custom Screen and Port Labels

Do you have a question on how to do something.
Ask in here.
Post Reply
Msoar16
Posts: 9
Joined: Fri May 09, 2014 9:25 pm

Newbie Custom Screen and Port Labels

Post by Msoar16 »

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();
}
Msoar16
Posts: 9
Joined: Fri May 09, 2014 9:25 pm

Re: Newbie Custom Screen and Port Labels

Post by Msoar16 »

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
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Newbie Custom Screen and Port Labels

Post by rimai »

Roberto.
Msoar16
Posts: 9
Joined: Fri May 09, 2014 9:25 pm

Re: Newbie Custom Screen and Port Labels

Post by Msoar16 »

Custom labels done, Thanks!!!!

Now how about the custom screen and thanks in advance
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Newbie Custom Screen and Port Labels

Post by rimai »

Roberto.
Msoar16
Posts: 9
Joined: Fri May 09, 2014 9:25 pm

Re: Newbie Custom Screen and Port Labels

Post by Msoar16 »

Custom Port names was no problem, this was like reading a different language.
Post Reply