lunar hub is too bright
-
Paulweck
- Posts: 71
- Joined: Fri Dec 28, 2012 2:26 pm
lunar hub is too bright
i have the lunar hub hooked up to my 90 gallon running on moon phase. im trying to turn down the intensity it about 75%. last might the moon phase was at 96% and it was way to bright for my liking. how can i turn them down?
- lnevo
- Posts: 5422
- Joined: Fri Jul 20, 2012 9:42 am
Re: lunar hub is too bright
You could use the map command to set your own range.
So if you wanted 0-100% to be 0-75% instead you could do this..
int mp=map(MoonPhase(),0,100,0,75);
Then you can use the variable mp to set your channels to what you want.
ReefAngel.PWM.SetDaylight(mp);
I'm not sure the ports to use on the lunar hub
So you can translate your code accordingly.
So if you wanted 0-100% to be 0-75% instead you could do this..
int mp=map(MoonPhase(),0,100,0,75);
Then you can use the variable mp to set your channels to what you want.
ReefAngel.PWM.SetDaylight(mp);
I'm not sure the ports to use on the lunar hub
-
Paulweck
- Posts: 71
- Joined: Fri Dec 28, 2012 2:26 pm
Re: lunar hub is too bright
thanks for the reply lee. i will try this where do i add the new map function?
- lnevo
- Posts: 5422
- Joined: Fri Jul 20, 2012 9:42 am
Re: lunar hub is too bright
Before you set the lunar hub and you'll need to change the argument where you set the lunar hub %
-
davaraj
- Posts: 98
- Joined: Sun Jul 21, 2013 8:18 am
Re: lunar hub is too bright
Will the lunar dimmable module ramp down to 0%? It was at 4% last night. Today there is no light at all.
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm