White screen with Reef Angel Wizard Code

Basic / Standard Reef Angel hardware
Post Reply
jegillis
Posts: 86
Joined: Sat Jan 04, 2014 10:26 am

White screen with Reef Angel Wizard Code

Post by jegillis »

Just got my RA, attempted to use the Wizard and using the code LCD screen goes white with occasional flickers If I restore the original code the screen works again. Below is the code the Wizard generated. Any help is appreciated I know nothing about what any of this code means.

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.AddStandardMenu();  // Add Standard Menu

    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = Port5Bit;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port1Bit | Port5Bit | Port6Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = 0;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 869 );


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

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

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

void loop()
{
    ReefAngel.SingleATO( true,Port1,360,0 );
    ReefAngel.Relay.Set( Port2, !ReefAngel.Relay.Status( Port3 ) );
    ReefAngel.StandardLights( Port3,13,0,23,0 );
    ReefAngel.StandardLights( Port4,13,15,22,15 );
    ReefAngel.PWM.SetDaylight( PWMParabola(13,15,22,15,15,23,15) );
    ReefAngel.PWM.SetActinic( PWMParabola(13,0,23,0,15,28,15) );
    ////// Place your custom code below here
    

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

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

Re: White screen with Reef Angel Wizard Code

Post by rimai »

Weird.
They all share the same underlying code.
Did you try any of the example codes?
Roberto.
jegillis
Posts: 86
Joined: Sat Jan 04, 2014 10:26 am

Re: White screen with Reef Angel Wizard Code

Post by jegillis »

Just tried the controller tester example code, same thing no screen came right back when I restored original code. Looks like it is still controlling the relays though
Image
jegillis
Posts: 86
Joined: Sat Jan 04, 2014 10:26 am

Re: White screen with Reef Angel Wizard Code

Post by jegillis »

Well just used a windows machine instead and its was fine, went back to the Mac afterwords and it worked also. No idea what just happened but I will keep an eye on it.
Image
Post Reply