Still trying to setup my RA
![Embarrassed :oops:](./images/smilies/icon_redface.gif)
I need assistance with my code
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
I want a very basic menue
1. Lights on/off (port 1 to 4)
2. Skimmer on/off (port7)
3. Return on/off (port8)
4. Setup - Calibrate pH
Info on Ports
Port 1 - 4 Lights
Port 5 Fans 26.5 on 26 off
Port 6 Heaters 25.5 on 26 off
Light time
Actinic Lights - Port 1
9:15 to 6:15
Daylight Lights Port 2
9:45 to 6:15
Actinic Lights Port 3
10:15 to 7:45
Daylight Lights Port 4
10:45 to 5:45
Here is my code so far but it is not working 100%, my lights does not want to switch on/off via the menu on the controller
![Evil or Very Mad :evil:](./images/smilies/icon_evil.gif)
#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 <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();
ReefAngel.SetTemperatureUnit( Celsius ); // set to Celsius Temperature
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit; // Turn on/off Ports 1 and 2 and 3 and 4 when Light On/Off menu option is selected
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port6Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 300 );
// Ports that are always on
ReefAngel.Relay.On( Port7 );
ReefAngel.Relay.On( Port8 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardLights( Port1,9,15,18,15 ); // Actinic Lights
ReefAngel.StandardLights( Port2,9,45,18,15 ); // Daylight Lights
ReefAngel.StandardLights( Port3,10,15,19,45 ); // Actinic Lights
ReefAngel.StandardLights( Port4,10,45,17,45 ); // Daylight Lights
ReefAngel.StandardFan( Port5,260,265 );
ReefAngel.StandardHeater( Port6,255,260 );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "Express Reef" );
ReefAngel.ShowInterface(); // Display everything on the LCD screen
}