I'm using the code in http://forum.reefangel.com/viewtopic.php?f=15&t=1401, and I'm still testing. I placed ra dimmable moonlight in actinic pwm port, but it is always on.
Any suggestion?
Stephy
Moonlight always on
Moonlight always on
Stephy
Re: Moonlight always on
If you want to turn them off, you need to do the same thing as you did for the RF.
Code: Select all
if (hour>=20 || hour<10)
ReefAngel.PWM.SetActinic( MoonPhase() );
else
ReefAngel.PWM.SetActinic( 0 );
Roberto.
Re: Moonlight always on
Added, thanks.rimai wrote:If you want to turn them off, you need to do the same thing as you did for the RF.Code: Select all
if (hour>=20 || hour<10) ReefAngel.PWM.SetActinic( MoonPhase() ); else ReefAngel.PWM.SetActinic( 0 );
Also () :
Code: Select all
if (hour()>=20 || hour()<10)
ReefAngel.PWM.SetActinic( MoonPhase() );
else
ReefAngel.PWM.SetActinic( 0 );
Stephy