Here are the errors:
Code: Select all
The following features were automatically added:
Watchdog Timer
Version Menu
The following features were detected:
Dimming Signal
Salinity Expansion Module
Wifi Attachment
Custom Main Screen
Exceed Flagging
Relay Expansion Module
Number of Relay Expansion Modules: 1
Simple Menu
Binary sketch size: 30,286 bytes (of a 30,720 byte maximum)
C:\Program Files\Reef Angel Controller\hardware/tools/avr/bin/avrdude -CC:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P\\.\COM6 -b57600 -D -Uflash:w:C:\Users\ONABOA~1\AppData\Local\Temp\build362447910769804697.tmp\sketch_sep16b.cpp.hex:i
avrdude: Version 6.0, compiled on Apr 6 2012 at 19:29:19
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"
Using Port : \\.\COM6
Using Programmer : stk500v1
Overriding Baud Rate : 57600
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x0c
avrdude done. Thank you.
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 <ReefAngel.h>
// Initialize Buzzer variables
byte buzzer=0;
byte overheatflag=0;
byte atoflag=0;
////// Place global variable code below here
////// Place global variable code above here
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port4Bit | Port7Bit | Port8Bit;
ReefAngel.FeedingModePortsE[0] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port3Bit | Port4Bit | Port5Bit | Port7Bit | Port8Bit;
ReefAngel.WaterChangePortsE[0] = Port5Bit | Port6Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit | Port2Bit | Port6Bit;
ReefAngel.LightsOnPortsE[0] = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | Port2Bit | Port3Bit | Port7Bit;
ReefAngel.OverheatShutoffPortsE[0] = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Ports that are always on
ReefAngel.Relay.On( Port1 ); //left radion
ReefAngel.Relay.On( Port2 ); //right radion
ReefAngel.Relay.On( Port5 ); //ATO
ReefAngel.Relay.On( Port8 ); //return
ReefAngel.Relay.On( Box1_Port7 ); //TBD
ReefAngel.Relay.On( Box1_Port8 ); //TBD
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardHeater( Port3 );
//ReefAngel.SingleATOLow( Port5 );
ReefAngel.Relay.DelayedOn( Port7 );
ReefAngel.DosingPumpRepeat1( Box1_Port5 );
ReefAngel.DosingPumpRepeat2( Box1_Port6 );
overheatflag = InternalMemory.read( Overheat_Exceed_Flag );
atoflag = InternalMemory.read( ATO_Exceed_Flag );
buzzer = overheatflag + atoflag;
if ( buzzer >= 1 ) buzzer = 100;
ReefAngel.PWM.SetDaylight( buzzer );
////// Place your custom code below here
/* Auto feeding mode starts.
Feeder set for 17:30, start feeding more at 17:35. */
if ( hour() == 17 && minute() == 25 && second() ==0 ) //if time is 17:25:00
{
ReefAngel.FeedingModeStart(); //start feeding mode
}
// Run Vortech during day only. Vortech is on from 09:00-20:00.
ReefAngel.StandardLights(Port4,9,0,20,0);
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "wolfpack" );
ReefAngel.ShowInterface();
}
void DrawCustomMain()
{
byte x = 6;
byte y = 2;
byte t;
char text[7];
static byte vtechmode=0;
/* Drawing this:
01/01/12 00:00:00 AM
----------------------
Disp 79.9 pH 8.00
Sump 79.9 Sal 0.60
Room 77.7
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
Moon Waning Crescent
Intensity 88%
Sunrise 06:15
Sunset 18:12
*/
ReefAngel.LCD.DrawDate(6, 2);
ReefAngel.LCD.Clear(COLOR_BLACK, 1, 11, 128, 11);
pingSerial();
//ReefAngel.LCD.DrawText(fcolor,bcolor,x,y,"text");
//Line 1 - Display Temp & pH
x = 8;
y = 15;
ReefAngel.LCD.DrawText(0,255,x,y,"Disp");
x += 30;
ReefAngel.LCD.DrawSingleMonitor(ReefAngel.Params.Temp[T1_PROBE], COLOR_CORNFLOWERBLUE, x, y, 10);
x = 64;
ReefAngel.LCD.DrawText(0,255,x,y,"pH");
x += 30;
ReefAngel.LCD.DrawSingleMonitor(ReefAngel.Params.PH, COLOR_CORNFLOWERBLUE, x, y, 100);
//Line 2 - Sump & Salinity
x = 8;
y += 10;
ReefAngel.LCD.DrawText(0,255,x,y,"Sump");
x += 30;
ReefAngel.LCD.DrawSingleMonitor(ReefAngel.Params.Temp[T2_PROBE], COLOR_CORNFLOWERBLUE, x, y, 10);
x = 64;
ReefAngel.LCD.DrawText(0,255,x,y,"Sal");
x += 30;
ReefAngel.LCD.DrawSingleMonitor(ReefAngel.Params.Salinity, COLOR_CORNFLOWERBLUE, x, y, 100);
//Line 3 - Room
x = 8;
y += 10;
ReefAngel.LCD.DrawText(0,255,x,y,"Room");
x += 30;
ReefAngel.LCD.DrawSingleMonitor(ReefAngel.Params.Temp[T3_PROBE], COLOR_CORNFLOWERBLUE, x, y, 10);
//Lines 4 and 5 - Relays
x = 12;
y += 15;
// draw main relay
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox(x, y, TempRelay);
#ifdef RelayExp
// draw 1st expansion relay
y += 12 ;
TempRelay = ReefAngel.Relay.RelayDataE[0];
TempRelay &= ReefAngel.Relay.RelayMaskOffE[0];
TempRelay |= ReefAngel.Relay.RelayMaskOnE[0];
ReefAngel.LCD.DrawOutletBox(x, y, TempRelay);
#endif // RelayExp
//Line 6 - Moon
x = 8;
y += 17;
ReefAngel.LCD.DrawText(0,255,x,y,"Moon");
//Line 7 - Intensity
x = 8;
y += 10;
ReefAngel.LCD.DrawText(0,255,x,y,"Intensity");
//Line 8 - Sunrise
x = 8;
y += 10;
ReefAngel.LCD.DrawText(0,255,x,y,"Sunrise");
//Line 9 - Sunset
x = 8;
y += 10;
ReefAngel.LCD.DrawText(0,255,x,y,"Sunset");
pingSerial();
}
void DrawCustomGraph()
{
}