Moonlight always on

New members questions
Post Reply
stephy
Posts: 26
Joined: Sat Jun 02, 2012 1:36 am
Location: Livorno (Italy)

Moonlight always on

Post 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
Stephy

Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Moonlight always on

Post 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 );
Roberto.
stephy
Posts: 26
Joined: Sat Jun 02, 2012 1:36 am
Location: Livorno (Italy)

Re: Moonlight always on

Post 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 );
Stephy

Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Moonlight always on

Post by rimai »

Yes, I'm sorry for the typo :)
Roberto.
Post Reply