inserting custom code
Posted: Sun Nov 29, 2015 8:09 pm
hello, I have a question. im really inexperienced at coding, which is a reason I went with a reef angel ( im wanting to learn more coding). I have a vague memory of html back in college days. Well... on to the question.
I saw the coding id like to try with my jebaos.
if I wanted to put that code in what would I need to change in my current code?
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.MHLights( Port1,12,30,14,30,5 );
ReefAngel.MHLights( Port2,5,0,22,0,10 );
ReefAngel.StandardLights( Port3,18,0,10,0 );
ReefAngel.StandardHeater( Port4,770,788 );
ReefAngel.StandardLights( Port5,18,0,10,0 );
ReefAngel.SingleATO( true,Port8,180,0 );
ReefAngel.PWM.SetDaylight( PWMSlope(8,0,20,0,5,100,120,5) );
ReefAngel.PWM.SetActinic( PWMSlope(8,0,20,0,5,100,120,5) );
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode( LongPulse,100,180 );
ReefAngel.DCPump.DaylightChannel = Sync;
ReefAngel.DCPump.ActinicChannel = AntiSync;
////// Place your custom code below here
////// Place your custom code above here
I saw the coding id like to try with my jebaos.
Code: Select all
if (hour()>=8 && hour()<12)
{
ReefAngel.PWM.SetDaylight( ReefCrestMode(60,20,true) ); // ReefCrest at 60% +/- 20% on sync mode
ReefAngel.PWM.SetActinic( ReefCrestMode(60,20,false) ); // ReefCrest at 60% +/- 20% on anti-sync mode
}
else if (hour()>=12 && hour()<18)
{
ReefAngel.PWM.SetDaylight( ShortPulseMode(0,60,200,true) ); // Short pulse at 60% with 200ms pulse on sync mode
ReefAngel.PWM.SetActinic( ShortPulseMode(0,60,200,false) ); // Short pulse at 60% with 200ms pulse on anti-sync mode
}
else
{
ReefAngel.PWM.SetDaylight( LongPulseMode(0,60,10,true) ); // Long pulse at 60% with 10s pulse on sync mode
ReefAngel.PWM.SetActinic( LongPulseMode(0,60,10,false) ); // Long pulse at 60% with 10s pulse on anti-sync mode
}
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.MHLights( Port1,12,30,14,30,5 );
ReefAngel.MHLights( Port2,5,0,22,0,10 );
ReefAngel.StandardLights( Port3,18,0,10,0 );
ReefAngel.StandardHeater( Port4,770,788 );
ReefAngel.StandardLights( Port5,18,0,10,0 );
ReefAngel.SingleATO( true,Port8,180,0 );
ReefAngel.PWM.SetDaylight( PWMSlope(8,0,20,0,5,100,120,5) );
ReefAngel.PWM.SetActinic( PWMSlope(8,0,20,0,5,100,120,5) );
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode( LongPulse,100,180 );
ReefAngel.DCPump.DaylightChannel = Sync;
ReefAngel.DCPump.ActinicChannel = AntiSync;
////// Place your custom code below here
////// Place your custom code above here