Some strange issues

New members questions
Post Reply
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Some strange issues

Post by cosmith71 »

Stupid parentheses. :oops:

Code: Select all

#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 <PAR.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 = Port5Bit | Port6Bit | Port7Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port6Bit | Port7Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port7Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 840 );


// Ports that are always on
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port8 );

////// Place additional initialization code below here


////// Place additional initialization code above here
}

void loop()
{
  
if ((hour() >= 5 && hour() < 10) || (hour() >=17 && (hour() < 22 && minute() < 45)))
{
  ReefAngel.Relay.On(Port1);
}
else
{
  ReefAngel.Relay.Off(Port1);
}

if (((hour() >= 5 && minute() >= 45) && hour() < 10) || (hour() >= 19 && hour() < 22))
{
  ReefAngel.Relay.On(Port2);
}
else
{
  ReefAngel.Relay.Off(Port2);
}


ReefAngel.StandardLights( Port3,9,55,20,30 );
ReefAngel.StandardLights( Port4,12,0,20,0 );
ReefAngel.StandardHeater( Port7,760,780 );

////// Place your custom code below here


////// Place your custom code above here

// This should always be the last line
ReefAngel.ShowInterface();
}
Frogman
Posts: 19
Joined: Fri Jan 15, 2016 1:04 pm
Contact:

Re: Some strange issues

Post by Frogman »

I was trying, resolved the first one, but couldn't figure out the second set.
My Wifi Controller should come tomorrow, so i might change up a little, but what you've helped me with is beginning to make sense. Hopefully I can do a little coding (sheer attempt at this point) this weekend and see what I can come up with.

Thanks again! Sincerely Appreciated!!!
Post Reply