I want new menu in RA for carbon reactor

Related to the development libraries, released by Curt Binder
Post Reply
coolsilver
Posts: 20
Joined: Mon Apr 01, 2013 7:15 am

I want new menu in RA for carbon reactor

Post by coolsilver »

Hi
I want to add new custom menu in my RA for carbon reactor.

I want the carbon reactor pump to switch off when I choose it . (port 3 in first relay box )
(to replace the media without switching off the rest of the pumps like water change mode configured with the wizard )

please help me to code this

thanks
wideawake
Posts: 29
Joined: Mon May 20, 2013 3:55 am

Re: I want new menu in RA for carbon reactor

Post by wideawake »

Why not just switch the relay off from the Android app?

Sent from my GT-N7100 using Tapatalk 4 Beta
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: I want new menu in RA for carbon reactor

Post by lnevo »

Here's the code you can add to a custom menu entry to toggle the port between auto and off.

Code: Select all

ReefAngel.Relay.Override(Port6, ~bitRead(ReefAngel.Relay.RelayMaskOff, 5)*2); // 5 is Port6 (bits are 0-7)
Here's the thread where we set this up for someone else.

http://forum.reefangel.com/viewtopic.php?f=12&t=3398
Post Reply