new reef angel board code not uploading

Share you PDE file with our community
Post Reply
simplefound
Posts: 8
Joined: Fri Aug 17, 2012 11:31 am

new reef angel board code not uploading

Post by simplefound »

Hi all i got a new board today as old one had died im trying to upload this code (pasted under) and i keep getting error uploading
any help will be appreciated

thanks

#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

// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port6Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port2Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 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( 950 );


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

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


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

void loop()
{
ReefAngel.StandardATO( Port1,60 );
ReefAngel.StandardLights( Port2,10,45,23,40 );
ReefAngel.StandardLights( Port3,23,0,11,0 );
ReefAngel.StandardFan( Port4,793,797 );
ReefAngel.WavemakerRandom( Port6,60,100 );
ReefAngel.StandardHeater( Port7,788,792 );
ReefAngel.PWM.SetDaylight( PWMSlope(12,0,22,30,0,100,60,0) );
ReefAngel.PWM.SetActinic( PWMSlope(11,0,23,30,0,100,60,0) );
////// Place your custom code below here


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

// This should always be the last line
ReefAngel.ShowInterface();
}
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: new reef angel board code not uploading

Post by rimai »

What is the error you are getting?
Did you check if you have the correct board and serial port?

Sent from my SPH-L710 using Tapatalk 4
Roberto.
simplefound
Posts: 8
Joined: Fri Aug 17, 2012 11:31 am

Re: new reef angel board code not uploading

Post by simplefound »

thought it might be something simple, i had the wrong board selected
What do i add to the code to be able to edit the time on the controller menu

Thanks
Simon
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: new reef angel board code not uploading

Post by rimai »

Add this to your setup():

Code: Select all

ReefAngel.AddDateTimeMenu();
Roberto.
Post Reply