Change Length of time when Feedmode

Do you have a question on how to do something.
Ask in here.

Posts: 26
Joined: Thu Oct 16, 2014 1:35 pm
PostPosted: Wed Nov 05, 2014 12:06 pm
1) Change you change the behavior to something else besides 15 minutes?

2) How to detect if when in and out of feed mode in
void loop()
{

// How to detect when enter feed mode

// How to detect when exit feed mode


}
User avatar
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL
PostPosted: Wed Nov 05, 2014 12:36 pm
Do you have the Android app?
You can change the length of the feed mode by going into the Memory Pages and in the drop down box find "Feeding Mode Time" and then enter in the value in seconds and write the value.

Image

You can do it through a web browser too, but I forgot the command.

Posts: 26
Joined: Thu Oct 16, 2014 1:35 pm
PostPosted: Wed Nov 05, 2014 12:44 pm
Thanks - I was looking for a way to do it with code. But will try this. Will this new timer be used even after a power loss?
User avatar
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL
PostPosted: Wed Nov 05, 2014 12:46 pm
Yes.
I don't think it can be done with code since it's an internal memory setting.
I may be wrong about that though.
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Thu Nov 06, 2014 7:19 pm
Put this in setup():

Code: Select all
  ReefAngel.Timer[FEEDING_TIMER].SetInterval(600);      // Set feeding mode to 10 minutes


The number is in seconds.

There is a way to tell if you're in feeding mode, but I can't remember it. I'll see if I can dig it up.

--Colin
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Thu Nov 06, 2014 7:30 pm
OK, found it.

Code: Select all
  if (ReefAngel.DisplayedMenu==FEEDING_MODE)
{
  // do some stuff
}


--Colin

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 6 guests

cron