coding vortech pumps with rf module
-
- Posts: 13
- Joined: Sun Nov 02, 2014 1:06 pm
coding vortech pumps with rf module
hi, im new to both the ra and writing codes. got most of the probs figured out using the wizard but dont know how to make my mp40 pump go into night mode. any help would be much appreciated. thanks
Re: coding vortech pumps with rf module
// Turn off Night Mode
if (hour()>8 && ReefAngel.RF.Mode==Night) ReefAngel.RF.SetMode(Night_Stop,0,0);
// Turn on Night Mode
if (hour()>20 && ReefAngel.RF.Mode!=Night) ReefAngel.RF.SetMode(Night,20,0);
if (hour()>8 && ReefAngel.RF.Mode==Night) ReefAngel.RF.SetMode(Night_Stop,0,0);
// Turn on Night Mode
if (hour()>20 && ReefAngel.RF.Mode!=Night) ReefAngel.RF.SetMode(Night,20,0);
-
- Posts: 13
- Joined: Sun Nov 02, 2014 1:06 pm
Re: coding vortech pumps with rf module
where exactly do i put this info into the sketch?
Re: coding vortech pumps with rf module
In the custom code section inside the loop() function.
-
- Posts: 13
- Joined: Sun Nov 02, 2014 1:06 pm
Re: coding vortech pumps with rf module
i dont even see the night mode anywhere in the code. im so confused
Re: coding vortech pumps with rf module
I posted it above...not sure what the question is. If you post your full code, i can show you where it goes..