Where are the variables defined for the "memory" option?
Posted: Tue Apr 25, 2017 4:35 pm
So one of the things I'm currently doing as I reboot tank is redo all of my RA code.
Previously, I had kept all the variables "in the code" as magic numbers, but this time around, I'd like the flexibility to change light timing and stuff like that remotely, so I built a new project with the "in memory" option.
The only problem is I don't see at all in the project/sketch where these values are even defined - I assumed they'd be defined as globals or something like that. I'm sure they must be SOMEwhere... just can't find them.
I'm specifically asking because I want my doser to run on a schedule that isn't my lighting schedule and isn't exactly opposite the lighting schedule either - and when I use the wizard, it doesn't allow me to set a second schedule. In general, I'd also like to be able to write code in the sketch that references in-memory values so everything is truly remotely-controllable.
I do recognize the potential implications of what I'm trying to do - namely, that the various RA apps expect the in-memory values to be situated at certain locations on the RA's stack equivalent. My intent is to add any custom variables after all of the RA pre-defined stuff to mitigate this issue.
Previously, I had kept all the variables "in the code" as magic numbers, but this time around, I'd like the flexibility to change light timing and stuff like that remotely, so I built a new project with the "in memory" option.
The only problem is I don't see at all in the project/sketch where these values are even defined - I assumed they'd be defined as globals or something like that. I'm sure they must be SOMEwhere... just can't find them.
I'm specifically asking because I want my doser to run on a schedule that isn't my lighting schedule and isn't exactly opposite the lighting schedule either - and when I use the wizard, it doesn't allow me to set a second schedule. In general, I'd also like to be able to write code in the sketch that references in-memory values so everything is truly remotely-controllable.
I do recognize the potential implications of what I'm trying to do - namely, that the various RA apps expect the in-memory values to be situated at certain locations on the RA's stack equivalent. My intent is to add any custom variables after all of the RA pre-defined stuff to mitigate this issue.