Page 1 of 1

Change PWM Channel based on DCPUMP mode

Posted: Wed Apr 05, 2023 11:55 am
by brennyn21
Hello, I cannot figure out how to set a dimming channel value based on what dcpump mode I have selected on the Uapp. So for example It would be something like this

If (DCPUMPMODE= reefcrest mode) ReefAngel.PWM.SetChannel(0,20)
So I have set the channel correctly, but I am now sure what I would need to put in front of that code. I have tried

if (ReefAngel.DCPumpMode_read(ReefCrestMode) == 1) ReefAngel.PWM.SetChannel(0,20);

but this compiles with an error. Hopefully, someone can understand what I am trying to do thank you!