Change PWM Channel based on DCPUMP mode

Do you have a question on how to do something.
Ask in here.
Post Reply
User avatar
brennyn21
Posts: 81
Joined: Mon Nov 23, 2020 5:40 pm

Change PWM Channel based on DCPUMP mode

Post 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!
Sincerely, Brennyn
Post Reply