Page 1 of 1

#define how to use correctly

Posted: Tue Feb 05, 2013 9:21 am
by riggeek
looking for some advice on using the #define

i am using it to define ports

//Define Relay Ports by Name
#define Top_off 1
#define DoseKalk 2
#define KessLEDS 3
#define Ref_light 4
#define Wavepump1 5
#define Wavepump2 6
#define Heater 7
#define Rtn_pmp 8

So how would I add or use this in the following code.

ReefAngel.WavemakerRandom1(Port5,20,60); // Turn Port5 on/off random cycles that lasts from 20 to 60 secs
ReefAngel.WavemakerRandom2(Port6,20,60); // Turn Port6 on/off random cycles that lasts from 20 to 60 secs

Thanks

riggeek

Re: #define how to use correctly

Posted: Tue Feb 05, 2013 10:08 am
by rimai

Code: Select all

 ReefAngel.WavemakerRandom1(Wavepump1,20,60); // Turn Port5 on/off random cycles that lasts from 20 to 60 secs
 ReefAngel.WavemakerRandom2(Wavepump2,20,60); // Turn Port6 on/off random cycles that lasts from 20 to 60 secs

Re: #define how to use correctly

Posted: Fri Feb 08, 2013 9:16 pm
by riggeek
Roberto

Thanks for the info

riggeek