I want new menu in RA for carbon reactor

Related to the development libraries, released by Curt Binder

Posts: 20
Joined: Mon Apr 01, 2013 7:15 am
PostPosted: Tue Jul 09, 2013 1:50 am
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

Posts: 29
Joined: Mon May 20, 2013 3:55 am
PostPosted: Tue Jul 09, 2013 8:52 am
Why not just switch the relay off from the Android app?

Sent from my GT-N7100 using Tapatalk 4 Beta
User avatar
Posts: 5351
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Jul 09, 2013 10:28 am
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.

viewtopic.php?f=12&t=3398

Return to Development Libraries

Who is online

Users browsing this forum: No registered users and 1 guest

cron