pwm expansion/lights on...
Posted: Sat Jun 22, 2013 5:15 pm
what do i put in my code to turn on channels on my dimmer expansion when i go to lights on mode??
thanks.
thanks.
Community discussion about Reef Angel Controllers and reefing related subjects
https://forum.reefangel.com/
Code: Select all
if (bitRead(Flags,LightsOnFlag))
{
ReefAngel.PWM.SetChannel(0,100);
}
rimai wrote:Try this:Code: Select all
bitRead(Flags,LightsOnFlag);
Perfect, thanks a lot.lnevo wrote:You also probably need to say ReefAngel.Flags and not just Flags btw.