Johniii's Code

Share you PDE file with our community

Posts: 86
Joined: Sun Mar 03, 2013 8:37 am
PostPosted: Sun Oct 13, 2013 6:20 am
finally putting a backup of my code up.
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 <ReefAngel.h>
#include <avr/pgmspace.h>
////// Place global variable code below here
//Custom Main, Graph & Menu

// Create the menu entries
prog_char menu1_label[] PROGMEM = "ReefCrest";
prog_char menu2_label[] PROGMEM = "TidalSwell";
prog_char menu3_label[] PROGMEM = "Short Pulse";
prog_char menu4_label[] PROGMEM = "Overheat Clear";
prog_char menu5_label[] PROGMEM = "PH Calibration";
prog_char menu6_label[] PROGMEM = "Date / Time";
prog_char menu7_label[] PROGMEM = "ATO Clear";
// Group the menu entries together
PROGMEM const char *menu_items[] = {
menu1_label, menu2_label, menu3_label,
menu4_label, menu5_label, menu6_label,
 void MenuEntry1()
 ReefAngel.DisplayMenuEntry("Reef Crest");
void MenuEntry2()
 ReefAngel.DisplayMenuEntry("tidal Swell");
void MenuEntry3()
ReefAngel.DisplayMenuEntry("Short Pulse");
void MenuEntry4()
ReefAngel.DisplayMenuEntry("Clear Overheat");
void MenuEntry5()
ReefAngel.DisplayedMenu = ALT_SCREEN_MODE;
void MenuEntry6()
{///// Place global variable code above here
ReefAngel.DisplayedMenu = ALT_SCREEN_MODE;
void MenuEntry7()
ReefAngel.DisplayMenuEntry("Clear ATO Timeout");

void setup()
    // This must be the first line
    ReefAngel.Init();  //Initialize controller
     ReefAngel.InitMenu(pgm_read_word(&(menu_items[0])),SIZE(menu_items));// Add Standard Menu

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

    // Feeeding and Water Change mode speed

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

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

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

void loop()
    ReefAngel.SingleATO( true,Port1,60,0 );
    ReefAngel.DosingPumpRepeat( Port2,0,240,10 );
    ReefAngel.DosingPumpRepeat( Port3,0,60,10 );
    ReefAngel.DosingPumpRepeat( Port5,30,60,10 );
    ReefAngel.StandardLights( Port6,14,0,22,0 );
    ReefAngel.StandardHeater( Port7,760,770 );
    ReefAngel.StandardHeater( Port8,760,770 );
    ReefAngel.DCPump.DaylightChannel = Sync;
    ReefAngel.DCPump.ActinicChannel = AntiSync;
    ////// Place your custom code below here
//Custom Main, Graph & Menu
////// Place your custom code above here

// This should always be the last line

Return to My PDE/INO file

Who is online

Users browsing this forum: No registered users and 2 guests