Thavngr98 code

Share you PDE file with our community

Posts: 83
Joined: Sun Jul 29, 2012 6:47 pm
Location: Long Island, NY
PostPosted: Tue Apr 09, 2013 7:38 pm
I've lost my code one to many times. Finally adding it here

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 <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
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = Port1Bit | Port5Bit | Port8Bit;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port1Bit | Port5Bit | Port8Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port1Bit | Port2Bit | Port3Bit |
Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;


    // 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,2700);
    ReefAngel.DayLights( Port2 );
    ReefAngel.ActinicLights( Port3 );
    ReefAngel.MoonLights( Port4 );
    ReefAngel.StandardHeater( Port6 );
    ReefAngel.StandardLights( Port7,02,00,6,00);
    ////// Place your custom code below here
    if(hour()==7 && minute()==55 && second()==0)
ReefAngel.FeedingModeStart();
    if(hour()==18 && minute()==55 && second()==0)
ReefAngel.FeedingModeStart();
    if (hour()<17)
    ReefAngel.StandardLights(Port4,13,00,14,20);
    else
    ReefAngel.StandardLights(Port4,21,30,23,00);


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

    // This should always be the last line
    ReefAngel.Portal( "thavngr98" );
    ReefAngel.ShowInterface();
}
-Dave

Image

Posts: 83
Joined: Sun Jul 29, 2012 6:47 pm
Location: Long Island, NY
PostPosted: Tue May 28, 2013 7:44 pm
Added WP40 short pulse and 30% overnight

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 <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
        // Ports toggled in Feeding Mode
        ReefAngel.FeedingModePorts = Port1Bit | Port5Bit | Port8Bit;
        // Ports toggled in Water Change Mode
        ReefAngel.WaterChangePorts = Port1Bit | Port5Bit | Port8Bit;
        // Ports toggled when Lights On / Off menu entry selected
        ReefAngel.LightsOnPorts = 0;
        // Ports turned off when Overheat temperature exceeded
        ReefAngel.OverheatShutoffPorts = Port1Bit | Port2Bit | Port3Bit |
    Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
        // Use T1 probe as temperature and overheat functions
        ReefAngel.TempProbe = T1_PROBE;
        ReefAngel.OverheatProbe = T1_PROBE;


        // 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,2700);
        ReefAngel.DayLights( Port2 );
        ReefAngel.ActinicLights( Port3 );
        ReefAngel.MoonLights( Port4 );
        ReefAngel.StandardHeater( Port6 );
        ReefAngel.StandardLights( Port7,02,00,6,00);
    ////// Place your custom code below here
    if(hour()==7 && minute()==55 && second()==0)
    ReefAngel.FeedingModeStart();
        if(hour()==18 && minute()==55 && second()==0)
    ReefAngel.FeedingModeStart();
        if (hour()<17)
    ReefAngel.StandardLights(Port4,13,00,14,20);
        else
    ReefAngel.StandardLights(Port4,21,30,23,00);

    ReefAngel.PWM.SetActinic( ShortPulseMode(0,80,4,true));

        if( ReefAngel.DisplayedMenu==FEEDING_MODE ) ReefAngel.PWM.SetActinic(0);
        if (hour()<7) ReefAngel.PWM.SetActinic(30);
       
       
   

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

    // This should always be the last line
    ReefAngel.Portal( "thavngr98" );
    ReefAngel.ShowInterface();
}
Last edited by Thavngr98 on Thu May 30, 2013 5:16 am, edited 2 times in total.
-Dave

Image
User avatar
Posts: 5330
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue May 28, 2013 8:07 pm
Your night/feeding mode code has to come after you set the wp40 default or it will always be overriden by the default mode.

Posts: 83
Joined: Sun Jul 29, 2012 6:47 pm
Location: Long Island, NY
PostPosted: Thu May 30, 2013 4:49 am
lnevo wrote:Your night/feeding mode code has to come after you set the wp40 default or it will always be overriden by the default mode.


So this way?

Code: Select all
 ReefAngel.PWM.SetActinic( ShortPulseMode(0,80,4,true));

           if( ReefAngel.DisplayedMenu==FEEDING_MODE ) ReefAngel.PWM.SetActinic(0);
           if (hour()<7) ReefAngel.PWM.SetDaylight(30);
       
     


Or do you mean my whole feeding code?

Code: Select all
////// Place your custom code below here

    //Reefbrite mode
    ReefAngel.StandardLights(Port4,13,00,14,20);
        else
    ReefAngel.StandardLights(Port4,21,30,23,00);

    //WP40 mode
    ReefAngel.PWM.SetActinic( ShortPulseMode(0,80,4,true));

    //Feed mode AM and PM
    if(hour()==7 && minute()==55 && second()==0)
    ReefAngel.FeedingModeStart();
        if(hour()==18 && minute()==55 && second()==0)
    ReefAngel.FeedingModeStart();
        if (hour()<17)
        if( ReefAngel.DisplayedMenu==FEEDING_MODE ) ReefAngel.PWM.SetActinic(0);
       
     //WP40 30% overnight
        if (hour()<7) ReefAngel.PWM.SetDaylight(30);
       

    ////// Place your custom code above here
-Dave

Image
User avatar
Posts: 5330
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Thu May 30, 2013 5:14 am
Just the first part.

But you have it going to 30% on the daylight channel and default/feeding on the actinic...is that what you wanted?

Posts: 83
Joined: Sun Jul 29, 2012 6:47 pm
Location: Long Island, NY
PostPosted: Thu May 30, 2013 5:22 am
lnevo wrote:Just the first part.

But you have it going to 30% on the daylight channel and default/feeding on the actinic...is that what you wanted?



Nice catch. thanks! So would this work?

Code: Select all
   
        ////// Place your custom code below here
       
        ReefAngel.StandardLights(Port4,13,00,14,20);
            else
        ReefAngel.StandardLights(Port4,21,30,23,00);

        ReefAngel.PWM.SetActinic( ShortPulseMode(0,80,4,true));

            if( ReefAngel.DisplayedMenu==FEEDING_MODE ) ReefAngel.PWM.SetActinic(0);
            if (hour()<7) ReefAngel.PWM.SetActinic(30);

            if(hour()==7 && minute()==55 && second()==0)
        ReefAngel.FeedingModeStart();
            if(hour()==18 && minute()==55 && second()==0)
        ReefAngel.FeedingModeStart();
            if (hour()<17)
           
       

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

     
-Dave

Image

Posts: 83
Joined: Sun Jul 29, 2012 6:47 pm
Location: Long Island, NY
PostPosted: Sat Oct 12, 2013 3:27 pm
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 <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
        // Ports toggled in Feeding Mode
        ReefAngel.FeedingModePorts = Port1Bit | Port5Bit | Port8Bit;
        // Ports toggled in Water Change Mode
        ReefAngel.WaterChangePorts = Port1Bit | Port5Bit | Port8Bit;
        // Ports toggled when Lights On / Off menu entry selected
        ReefAngel.LightsOnPorts = 0;
        // Ports turned off when Overheat temperature exceeded
        ReefAngel.OverheatShutoffPorts = Port1Bit | Port2Bit | Port3Bit |
    Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
        // Use T1 probe as temperature and overheat functions
        ReefAngel.TempProbe = T1_PROBE;
        ReefAngel.OverheatProbe = T1_PROBE;


        // 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,2700);
        ReefAngel.DayLights( Port2 );
        ReefAngel.ActinicLights( Port3 );
        ReefAngel.MoonLights( Port4 );
        ReefAngel.StandardHeater( Port6 );
        ReefAngel.StandardLights( Port7,02,00,6,00);
    ////// Place your custom code below here

        ReefAngel.StandardLights(Port4,13,00,14,20);
        ReefAngel.StandardLights(Port4,21,30,23,00);

   
     
    //ReefAngel.PWM.SetActinic( LongPulseMode(0,50,5,true));
   // ReefAngel.PWM.SetActinic( ReefCrestMode(0,45,10,true));
   ReefAngel.PWM.SetActinic( ShortPulseMode(0,80,4,true)); 
        if( ReefAngel.DisplayedMenu==FEEDING_MODE ) ReefAngel.PWM.SetActinic(0);
        if( ReefAngel.DisplayedMenu==WATERCHANGE_MODE ) ReefAngel.PWM.SetActinic(0);
        if (hour()<7) ReefAngel.PWM.SetDaylight(30);
       
        if(hour()==7 && minute()==55 && second()==0)
    ReefAngel.FeedingModeStart();
        if(hour()==18 && minute()==55 && second()==0)
    ReefAngel.FeedingModeStart();
        if (hour()<17)
       
   

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

    // This should always be the last line
    ReefAngel.Portal( "thavngr98" );
    ReefAngel.ShowInterface();
}

//*********************************************************************************************************************************
//Custom Main, Graph & Menu
void DrawCustomMain()
    {
      byte x;
      byte y = 2;
      char text[7];

      // *********** CHANGE TEMP READOUT COLOR DEPENDENT ON FAN AND HEATER STATUS ***********
      int TempColor;        // Color for drawing temperature
      boolean FanOn = ReefAngel.Relay.Status(Port5);    // Get the status of the fan relay
      boolean HeatOn = ReefAngel.Relay.Status(Port6);   // Get the status of the heater relay
      if (HeatOn)
      {
        TempColor = COLOR_NAVY;    // Blue text, too cold, heater is on
      }
      if (FanOn)   
      {
          TempColor = COLOR_RED;   // Red text, too warm, fan is on
      }
      if (!HeatOn && !FanOn)
      {
          TempColor = COLOR_GREEN;  // Green text, no fan or heater on
      }
      // ***********************************************************************************
     
      ReefAngel.LCD.DrawText(COLOR_WHITE, COLOR_BLACK, 0, 1, "    Dave's Reef     ");    // Put a banner at the top
      ReefAngel.LCD.DrawDate(6, 119);                                                      // Put the date and time at the bottom
      pingSerial();                                                                        // Hit the Wifi Attachment
      x = 12;
      y += MENU_START_ROW+1;                                                               // MENU_START_ROW is 10, according to globals.h, so y=2+10+1=13
      ReefAngel.LCD.DrawText(COLOR_BLUE, COLOR_WHITE, x, y+6, "Tank Temp     pH");
      ConvertNumToString(text, ReefAngel.Params.PH, 100);                                  // Get pH reading and convert
      ReefAngel.LCD.DrawLargeText(PHColor, DefaultBGColor, x+75, y+18, text, Font8x16);    // Put pH on the screen
      ConvertNumToString(text, ReefAngel.Params.Temp[T1_PROBE], 10);                       // Get T1 temp and convert
      pingSerial();
      y += MENU_START_ROW*2;
      x = 10;
      ReefAngel.LCD.Clear(TempColor, x, y-1, x+63, y-1);                                   // Draw a line above and below the temp
      ReefAngel.LCD.Clear(TempColor, x, y+16, x+63, y+16);                                 // To make it look nicer and easier to read
      ReefAngel.LCD.DrawHugeNumbers(COLOR_WHITE, TempColor, x, y, text);                   // Draw the temperature, white numbers on a colored background
      x += (16*4) + 8;
      pingSerial();
      //ReefAngel.LCD.DrawText(DPColor,DefaultBGColor,8,y+25,"White %");
      //ReefAngel.LCD.DrawSingleMonitor(ReefAngel.PWM.GetDaylightValue(), DPColor, 24, y+35, 1);    // Draw the white light %
      ReefAngel.LCD.DrawText(APColor,DefaultBGColor,x+8,y+25,"Blue %");
      ReefAngel.LCD.DrawSingleMonitor(ReefAngel.PWM.GetActinicValue(), APColor, x+24, y+35, 1);   // Draw the blue light %
      ReefAngel.LCD.Clear(COLOR_BLACK,5,y+22,127,y+22);                                    // Draw a box around the light area
      ReefAngel.LCD.Clear(COLOR_BLACK,5,y+22,5,y+46);                                      //
      ReefAngel.LCD.Clear(COLOR_BLACK,127,y+22,127,y+46);                                  //
      ReefAngel.LCD.Clear(COLOR_BLACK,5,y+46,127,y+46);                                    //
      pingSerial();
      // Code for drawing the relay box     
      byte TempRelay = ReefAngel.Relay.RelayData;
      TempRelay &= ReefAngel.Relay.RelayMaskOff;
      TempRelay |= ReefAngel.Relay.RelayMaskOn;
      ReefAngel.LCD.DrawOutletBox(14, 92, TempRelay);
   
}
void DrawCustomGraph()
{
}
-Dave

Image

Posts: 83
Joined: Sun Jul 29, 2012 6:47 pm
Location: Long Island, NY
PostPosted: Sun Jan 19, 2014 4:26 pm
Lights Removed

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>

    ////// 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.Use2014Screen();  // Let's use 2014 Screen
        // Ports toggled in Feeding Mode
        ReefAngel.FeedingModePorts = Port1Bit | Port5Bit | Port8Bit;
        // Ports toggled in Water Change Mode
        ReefAngel.WaterChangePorts = Port1Bit | Port5Bit | Port8Bit;
        // Ports toggled when Lights On / Off menu entry selected
        ReefAngel.LightsOnPorts = 0;
        // Ports turned off when Overheat temperature exceeded
        ReefAngel.OverheatShutoffPorts = Port1Bit | Port4Bit | Port6Bit | Port7Bit | Port8Bit;
        // Use T1 probe as temperature and overheat functions
        ReefAngel.TempProbe = T1_PROBE;
        ReefAngel.OverheatProbe = T1_PROBE;

        // Feeeding and Water Change mode speed
        ReefAngel.DCPump.FeedingSpeed=0;
        ReefAngel.DCPump.WaterChangeSpeed=0;


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

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

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

    void loop()
    {
        ReefAngel.StandardATO( Port1,2700);
        ReefAngel.MoonLights( Port4 );
        ReefAngel.StandardFan( Port5 );
        ReefAngel.StandardHeater( Port6 );
        ReefAngel.StandardLights( Port7,01,00,6,00);
        ReefAngel.DCPump.UseMemory = true;
        ReefAngel.DCPump.DaylightChannel = None;
        ReefAngel.DCPump.ActinicChannel = Sync;
        ////// Place your custom code below here
       
        ReefAngel.StandardLights(Port4,16,30,17,45);
        ReefAngel.StandardLights(Port4,21,30,23,45);
       
        //Wave patterns
        if (hour()>=24 && hour()<8)
        {
          ReefAngel.PWM.SetActinic( LongPulseMode(40,40,10,true) ); // Long pulse at 40% with 10s pulse
        }   
        else if (hour()>=8 && hour()<11)
        {
          ReefAngel.PWM.SetActinic( TidalSwellMode(50,true) ); // Tidal Swell at 40%
        }
        else if (hour()>=11 && hour()<12)
        {
          ReefAngel.PWM.SetActinic( ReefCrestMode(50,20,true) ); // ReefCrest at 50% + - 20
        }
        else if (hour()>=12 && hour()<13)
        {
          ReefAngel.PWM.SetActinic( ShortPulseMode(0,70,4,true)); // Short Pulse 70%
        }
        else if (hour()>=13 && hour()<14)
        {
          ReefAngel.PWM.SetActinic( ReefCrestMode(70,20,true) ); // ReefCrest at 70% + - 20
        }
        else if (hour()>=15 && hour()<18)
        {
          ReefAngel.PWM.SetActinic( millis()%1000>800?80:0); // Wave
        }
        else if (hour()>=18 && hour()<21)
        {
          ReefAngel.PWM.SetActinic( NutrientTransportMode(55,70,3000,true) ); //   Nutrient Transport
        }
        else if (hour()>=21 && hour()<24)
        {
          ReefAngel.PWM.SetActinic( ShortPulseMode(0,70,4,true));
        }
               
          //Turn Off during feed mode
         if (ReefAngel.DisplayedMenu==FEEDING_MODE)
          {
            ReefAngel.PWM.SetActinic(0);
          }
          if (ReefAngel.DisplayedMenu==WATERCHANGE_MODE)
          {
            ReefAngel.PWM.SetActinic(0);     
          }
          //Feed Modes 7:55am and 6:55pm
          //if(hour()==7 && minute()==55 && second()==0)
          //{
          //  ReefAngel.FeedingModeStart();
          //}
            if(hour()==18 && minute()==55 && second()==0)
          {
            ReefAngel.FeedingModeStart();
          }
            if (hour()<17)
         
           
           
        ////// Place your custom code above here

        // This should always be the last line
        ReefAngel.Portal( "thavngr98" );
        ReefAngel.ShowInterface();
    }

    //*********************************************************************************************************************************
    //Custom Main, Graph & Menu
    void DrawCustomMain()
        {
          byte x;
          byte y = 2;
          char text[7];

          // *********** CHANGE TEMP READOUT COLOR DEPENDENT ON FAN AND HEATER STATUS ***********
          int TempColor;        // Color for drawing temperature
          boolean FanOn = ReefAngel.Relay.Status(Port5);    // Get the status of the fan relay
          boolean HeatOn = ReefAngel.Relay.Status(Port6);   // Get the status of the heater relay
          if (HeatOn)
          {
            TempColor = COLOR_NAVY;    // Blue text, too cold, heater is on
          }
          if (FanOn)   
          {
              TempColor = COLOR_RED;   // Red text, too warm, fan is on
          }
          if (!HeatOn && !FanOn)
          {
              TempColor = COLOR_GREEN;  // Green text, no fan or heater on
          }
          // ***********************************************************************************
         
          ReefAngel.LCD.DrawText(COLOR_WHITE, COLOR_BLACK, 0, 1, "    Dave's Reef     ");    // Put a banner at the top
          ReefAngel.LCD.DrawDate(6, 119);                                                      // Put the date and time at the bottom
          pingSerial();                                                                        // Hit the Wifi Attachment
          x = 12;
          y += MENU_START_ROW+1;                                                               // MENU_START_ROW is 10, according to globals.h, so y=2+10+1=13
          ReefAngel.LCD.DrawText(COLOR_BLUE, COLOR_WHITE, x, y+6, "Tank Temp     pH");
          ConvertNumToString(text, ReefAngel.Params.PH, 100);                                  // Get pH reading and convert
          ReefAngel.LCD.DrawLargeText(PHColor, DefaultBGColor, x+75, y+18, text, Font8x16);    // Put pH on the screen
          ConvertNumToString(text, ReefAngel.Params.Temp[T1_PROBE], 10);                       // Get T1 temp and convert
          pingSerial();
          y += MENU_START_ROW*2;
          x = 10;
          ReefAngel.LCD.Clear(TempColor, x, y-1, x+63, y-1);                                   // Draw a line above and below the temp
          ReefAngel.LCD.Clear(TempColor, x, y+16, x+63, y+16);                                 // To make it look nicer and easier to read
          ReefAngel.LCD.DrawHugeNumbers(COLOR_WHITE, TempColor, x, y, text);                   // Draw the temperature, white numbers on a colored background
          x += (16*4) + 8;
          pingSerial();
          //ReefAngel.LCD.DrawText(DPColor,DefaultBGColor,8,y+25,"White %");
          //ReefAngel.LCD.DrawSingleMonitor(ReefAngel.PWM.GetDaylightValue(), DPColor, 24, y+35, 1);    // Draw the white light %
          ReefAngel.LCD.DrawText(APColor,DefaultBGColor,x+8,y+25,"Blue %");
          ReefAngel.LCD.DrawSingleMonitor(ReefAngel.PWM.GetActinicValue(), APColor, x+24, y+35, 1);   // Draw the blue light %
          ReefAngel.LCD.Clear(COLOR_BLACK,5,y+22,127,y+22);                                    // Draw a box around the light area
          ReefAngel.LCD.Clear(COLOR_BLACK,5,y+22,5,y+46);                                      //
          ReefAngel.LCD.Clear(COLOR_BLACK,127,y+22,127,y+46);                                  //
          ReefAngel.LCD.Clear(COLOR_BLACK,5,y+46,127,y+46);                                    //
          pingSerial();
          // Code for drawing the relay box     
          byte TempRelay = ReefAngel.Relay.RelayData;
          TempRelay &= ReefAngel.Relay.RelayMaskOff;
          TempRelay |= ReefAngel.Relay.RelayMaskOn;
          ReefAngel.LCD.DrawOutletBox(14, 92, TempRelay);
       
    }
    void DrawCustomGraph()
    {
    }
Last edited by Thavngr98 on Mon Jan 20, 2014 8:43 am, edited 3 times in total.
-Dave

Image
User avatar
Posts: 5330
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Sun Jan 19, 2014 5:03 pm
What did you replace them with?

Posts: 83
Joined: Sun Jul 29, 2012 6:47 pm
Location: Long Island, NY
PostPosted: Sun Jan 19, 2014 5:35 pm
taking them off the controller. They keep tripping my gfci every now and then except the last time (2 days ago) I lost all but 1 fish and about half my coral
-Dave

Image
Next

Return to My PDE/INO file

Who is online

Users browsing this forum: No registered users and 3 guests