Page 1 of 1

Moonlight always on

Posted: Thu Jun 14, 2012 6:13 am
by stephy
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

Re: Moonlight always on

Posted: Thu Jun 14, 2012 6:58 am
by rimai
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 );

Re: Moonlight always on

Posted: Sun Jun 17, 2012 11:48 pm
by stephy
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 );
Added, thanks.

Also () :

Code: Select all

if (hour()>=20 || hour()<10)
    ReefAngel.PWM.SetActinic( MoonPhase() );
else
    ReefAngel.PWM.SetActinic( 0 );

Re: Moonlight always on

Posted: Mon Jun 18, 2012 7:31 am
by rimai
Yes, I'm sorry for the typo :)