Page 1 of 1
Code Pull?
Posted: Mon Feb 25, 2013 4:22 pm
by Thavngr98
My HD crashed that had my configs backed up. Before I go unhook the RA unit will I be able to connect it to Arduino and pull the code that I am currently running on it or am I SOL and going through the pain of customizing the code again?
Code Pull?
Posted: Mon Feb 25, 2013 4:38 pm
by lnevo
Sol.
Code Pull?
Posted: Mon Feb 25, 2013 4:38 pm
by lnevo
But we can help you salvage it..
Re: Code Pull?
Posted: Mon Feb 25, 2013 4:50 pm
by Thavngr98
Lee what can be salvaged? I think I got some of it back from old posts where I posted my code. LOL
Code Pull?
Posted: Mon Feb 25, 2013 4:52 pm
by lnevo
That and you tell what your missing and we help you rewrite it
This is also why i keep my ino thread up to date

Code Pull?
Posted: Mon Feb 25, 2013 5:48 pm
by Thavngr98
Good idea! Thanks. I'm off tomorrow. I'm going to work on it then. If I need any help I'll post. Thanks!
Re: Code Pull?
Posted: Tue Feb 26, 2013 10:21 am
by Thavngr98
Lee or Whom ever
If I want to turn port 4 on at 13:00 and off at 14:30
and then
turn port 4 back on at 21:30 pm and off 23:00
what would the code be?
Re: Code Pull?
Posted: Tue Feb 26, 2013 10:34 am
by rimai
Try this:
Code: Select all
if (hour()<17)
ReefAngel.StandardLights(Port4,13,0,14,30);
else
ReefAngel.StandardLights(Port4,21,30,23,00);
Re: Code Pull?
Posted: Tue Feb 26, 2013 10:39 am
by Thavngr98
Do I need to seperate it from my feeding code?
Code: Select all
if(hour()==7 && minute()==55 && second()==0) ReefAngel.FeedingModeStart();
if(hour()==18 && minute()==55 && second()==0) ReefAngel.FeedingModeStart();
if (hour()<17)
ReefAngel.StandardLights(Port4,13,0,14,30);
else
ReefAngel.StandardLights(Port4,21,30,23,00);
Re: Code Pull?
Posted: Tue Feb 26, 2013 10:44 am
by rimai
The code you posted should work.
Re: Code Pull?
Posted: Tue Feb 26, 2013 10:45 am
by Thavngr98
ok thanks!