Page 1 of 1

Re: Help with old PDE converted to INO

Posted: Fri Jun 06, 2014 7:59 am
by lnevo
The overheat temp write looked ok so it's odd that you had an issue, even odder that uncommenting fixed it because the memory write is persistent.

If you go into Globals/Globals.h you can find all the memory locations. And you can use the InternalMemory.write to update that FeedingTimer location. Forget the actual name. If you look at the InternalMemory.h file you can also find the function that will update the field similar to the InternalMemory.OverheatWriteTemp_write() one.

Good luck

Re: Help with old PDE converted to INO

Posted: Fri Jun 06, 2014 8:13 am
by rimai
Here it is:

Code: Select all

InternalMemory.FeedingTimer_write(1500); 

Re: Help with old PDE converted to INO

Posted: Sun Jun 08, 2014 4:21 am
by StuGotz
rimai wrote:Here it is:

Code: Select all

InternalMemory.FeedingTimer_write(1500); 
Thank you. Adding that to my loop fixed my feeding mode timer.

Re: Help with old PDE converted to INO

Posted: Sun Jun 08, 2014 7:55 am
by rimai
No. Don't place it in the loop.
It needs to be in setup or you will damage the memory.

Re: Help with old PDE converted to INO

Posted: Sun Jun 08, 2014 1:58 pm
by StuGotz
I put it in setup initially and it didn't work. Then i tried loop and it worked fine. I put it back into setup and it works this time. Any idea why all my memory settings were wiped when I switched to the latest libraries?

Re: Help with old PDE converted to INO

Posted: Sun Jun 08, 2014 2:50 pm
by binder
StuGotz wrote:I put it in setup initially and it didn't work. Then i tried loop and it worked fine. I put it back into setup and it works this time. Any idea why all my memory settings were wiped when I switched to the latest libraries?
I forget what point in the libraries (probably with the 0.9.0 update or later), we switched to different memory locations to make way for future improvements. so that's probably what got you. the old locations started at 800 and the new locations start at 200.

Re: Help with old PDE converted to INO

Posted: Mon Jun 09, 2014 5:24 am
by StuGotz
binder wrote:I forget what point in the libraries (probably with the 0.9.0 update or later), we switched to different memory locations to make way for future improvements. so that's probably what got you. the old locations started at 800 and the new locations start at 200.
Ahh, thank you.

Re: Help with old PDE converted to INO

Posted: Fri Jun 20, 2014 8:59 am
by StuGotz
I've noticed my moon lights no longer work since switching to the new libraries. I use the ones sold through the RA online store. They're currently sharing the PWM port with my daylight driver. I saw in a recent thread that it's possible to use an ATO port to dim LEDs with the right code. I'm having a hard time finding a thread with information on it. Is someone familiar with how I can drive my moonlight with an ATO port? I'd like to use the built-in function for the Moon Phase.

Re: Help with old PDE converted to INO

Posted: Fri Jun 20, 2014 3:01 pm
by rimai
The ato port doesn't have enough power.
It will be very dim.

Sent from my SM-G900P using Tapatalk