Page 1 of 1

How to change port labels in controller

Posted: Thu Apr 10, 2014 12:08 pm
by Armetas
Hi,

Maybe it is dummy question, but I cannot find answer.

I have 2 relay box'es through relay hub, how can I change labels of my relay ports (main and second)?

Thanks in advance.

P.s. some relay code:
ReefAngel.Relay.On( Port8 );
ReefAngel.Relay.On( Box1_Port6 );

Re: How to change port labels in controller

Posted: Thu Apr 10, 2014 12:20 pm
by rimai
Add something like this above setup()

Code: Select all

#define NewaPumps Port8
Then you can call it NewaPumps instead of Port8.
Just keep in mind that it cannot have spaces.

Code: Select all

ReefAngel.Relay.On( NewaPumps );

Re: How to change port labels in controller

Posted: Thu Apr 10, 2014 12:22 pm
by Armetas
rimai wrote:Add something like this above setup()

Code: Select all

#define NewaPumps Port8
Then you can call it NewaPumps instead of Port8.
Just keep in mind that it cannot have spaces.

Code: Select all

ReefAngel.Relay.On( NewaPumps );
Cool, big thanks

Re: How to change port labels in controller

Posted: Thu Apr 10, 2014 12:31 pm
by Armetas
And by the whay will it change labels on RA LCD screen?

Re: How to change port labels in controller

Posted: Thu Apr 10, 2014 1:39 pm
by rimai

Re: How to change port labels in controller

Posted: Thu Apr 10, 2014 1:44 pm
by Armetas
I've tried like it says with custom labels but it didn't work out, as I have relay expansion - Box1_port1 and etc. I don't know how to set labels there

Re: How to change port labels in controller

Posted: Thu Apr 10, 2014 2:11 pm
by rimai
Try going through the array...
8 should be box1_port1

Sent from my SPH-L710 using Tapatalk

Re: How to change port labels in controller

Posted: Sun Apr 13, 2014 4:13 am
by Armetas
rimai wrote:Try going through the array...
8 should be box1_port1

Sent from my SPH-L710 using Tapatalk
Yes it worked, but noticed that 10 characters are the limit. Thats why it failed first time for me