Blank Screen RAStar
Posted: Thu Dec 29, 2016 2:44 am
Hello,
I have a blank screen on my RAStar can you help me please ? :
I have
RANet relay box
Dimming Expansion
I tried to use Web Wizard and there is not yet RAStar white version? (propotype)
Thx for your help
I have a blank screen on my RAStar can you help me please ? :
I have
RANet relay box
Dimming Expansion
I tried to use Web Wizard and there is not yet RAStar white version? (propotype)
Thx for your help
Code: Select all
#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.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.Star();
ReefAngel.AddStandardMenu();
ReefAngel.Use2014Screen(); // Let's use 2014 Screen
ReefAngel.AddRANet(); // RANet Add-On Module
ReefAngel.SetTemperatureUnit( Celsius ); // set to Celsius Temperature
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
// Ports turned off when Leak is detected
ReefAngel.LeakShutoffPorts = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit | Port2Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 300 );
// Ports that are always on
ReefAngel.Relay.On( Port3 );
ReefAngel.Relay.On( Port4 );
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port7 );
ReefAngel.Relay.On( Port8 );
////// Place additional initialization code below here
// Ports turned off when Leak is detected
//ReefAngel.LeakShutoffPorts = Box1_Port3;
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardLights( Port1,8,0,23,0 );
ReefAngel.StandardLights( Port2,8,0,23,0 );
ReefAngel.PWM.SetDaylight( PWMSlope( 9,0,23,0,15,70,60,0 ) );
ReefAngel.PWM.SetActinic( PWMSlope( 9,0,23,0,15,70,60,0 ) );
ReefAngel.PWM.SetDaylight2( PWMSlope( 9,0,23,0,15,70,60,0 ) );
ReefAngel.PWM.SetActinic2( PWMSlope( 9,0,23,0,15,70,60,0 ) );
ReefAngel.PWM.SetChannel( 0,PWMSlope( 9,0,23,0,15,70,60,0 ) );
ReefAngel.PWM.SetChannel( 1,PWMSlope( 9,0,23,0,15,70,60,0 ) );
ReefAngel.PWM.SetChannel( 2,PWMSlope( 9,0,23,0,15,70,60,0 ) );
ReefAngel.PWM.SetChannel( 3,PWMSlope( 9,0,23,0,15,70,60,0 ) );
ReefAngel.PWM.SetChannel( 4,PWMSlope( 9,0,23,0,15,70,60,0 ) );
boolean buzzer=false;
if ( ReefAngel.isOverheat() ) buzzer=true;
if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();
////// Place your custom code below here
//CO2
// if ( ReefAngel.Params.PH <= 600 )
//ReefAngel.Relay.Off(Box1_Port5);
//if ( ReefAngel.Params.PH >= 700 )
//ReefAngel.Relay.On(Box1_Port5);
//Week days light ON/OFF
InternalMemory.write(0, 17);
InternalMemory.write(1, 00);
InternalMemory.write(2, 00);
InternalMemory.write(3, 00);
InternalMemory.write(4, 17);
InternalMemory.write(5, 00);
InternalMemory.write(6, 00);
InternalMemory.write(7, 00);
// if ( (weekday() == 1) || (weekday() == 7) ) // Sunday or Saturday
// {
// // 0 - on hour, 1 - on minute, 2 - off hour, 3 - off minute
// // 4 - on hour, 5 - on minute, 6 - off hour, 7 - off minute
// ReefAngel.StandardLights(Box1_Port1, InternalMemory.read(0), InternalMemory.read(1), InternalMemory.read(2), InternalMemory.read(3)); // Weekend schedule
// ReefAngel.StandardLights(Box1_Port2, InternalMemory.read(4), InternalMemory.read(5), InternalMemory.read(6), InternalMemory.read(7)); // Weekend schedule
// } else
// {
// ReefAngel.StandardLights(Box1_Port1,17,0,23,0 ); // Weekday schedule (use standard internal memory values)
// ReefAngel.StandardLights(Box1_Port2,17,0,23,0 ); // Weekday schedule (use standard internal memory values)
// }
////// Place your custom code above here
ReefAngel.Network.Cloud();
// This should always be the last line
ReefAngel.ShowTouchInterface();
}
// RA_STRING1=$$$$$$$$$
// RA_STRING2=null
// RA_STRING3=null