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 );
How to change port labels in controller
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: How to change port labels in controller
Add something like this above setup()
Then you can call it NewaPumps instead of Port8.
Just keep in mind that it cannot have spaces.
Code: Select all
#define NewaPumps Port8
Just keep in mind that it cannot have spaces.
Code: Select all
ReefAngel.Relay.On( NewaPumps );
Roberto.
-
Armetas
- Posts: 83
- Joined: Sat Mar 29, 2014 1:55 pm
Re: How to change port labels in controller
Cool, big thanksrimai wrote:Add something like this above setup()Then you can call it NewaPumps instead of Port8.Code: Select all
#define NewaPumps Port8
Just keep in mind that it cannot have spaces.Code: Select all
ReefAngel.Relay.On( NewaPumps );
-
Armetas
- Posts: 83
- Joined: Sat Mar 29, 2014 1:55 pm
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
-
Armetas
- Posts: 83
- Joined: Sat Mar 29, 2014 1:55 pm
Re: How to change port labels in controller
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
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: How to change port labels in controller
Try going through the array...
8 should be box1_port1
Sent from my SPH-L710 using Tapatalk
8 should be box1_port1
Sent from my SPH-L710 using Tapatalk
Roberto.
-
Armetas
- Posts: 83
- Joined: Sat Mar 29, 2014 1:55 pm
Re: How to change port labels in controller
Yes it worked, but noticed that 10 characters are the limit. Thats why it failed first time for merimai wrote:Try going through the array...
8 should be box1_port1
Sent from my SPH-L710 using Tapatalk