Even better would be an entry in my "soon to be built" custom main menu that allowed me to override, start, and stop this function.dmolton wrote: You can use the StandardLights function in your RA PDE sketch file to control on/off times for you LEDs.
the function looks like this:
StandardLights(byte LightsRelay, byte OnHour, byte OnMinute, byte OffHour, byte OffMinute)
so you inside the loop() function of your sketch the line will look something similar to this:The above line will turn on Port 2 at 10:00 AM and turn it off at 9:30 PMCode: Select all
ReefAngel.StandardLights(2,10,0,21,30);
toggling a port
-
rossbryant1956
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
toggling a port
looking for a post on just toggling a port at certain times. I will use it switch on\off my salt water reservoir barrel. Saw this, is there a better way?
Roscoe's Reefs - Starting Over Again:
Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
-
binder
- Posts: 2865
- Joined: Fri Mar 18, 2011 6:20 pm
- Location: Illinois
- Contact:
Re: toggling a port
The use of the "StandardLights" function is simply for a timed port.
You can do an entry in the custom menu that would force the port ON/OFF. You would need either 2 functions: 1 to turn ON and 1 to turn OFF. Or you could make it toggle ON/OFF based on how many times you chose the menu option.
This thread does something similar to that, but only for LEDs. http://forum.reefangel.com/viewtopic.ph ... ggle#p7175
You can do an entry in the custom menu that would force the port ON/OFF. You would need either 2 functions: 1 to turn ON and 1 to turn OFF. Or you could make it toggle ON/OFF based on how many times you chose the menu option.
This thread does something similar to that, but only for LEDs. http://forum.reefangel.com/viewtopic.ph ... ggle#p7175
