using an LCDX and want to do the following:
1. pre-load a value into the EEPROM (so that the very first time the
LCDX is powered up it will have a default value to use)
2. Create a menu that the user can go into and modify the value and
then save the new value, so that the next time the LCDX is powered up
the new value will be used.
I know how to create the sub that will use getEEPROM statement to
retrieve the current value in the EEPROM, but I'm having trouble with
pre-loading the EEPROM. (I've used a DATA statement with other
platforms to do a one-time memory location load). If I place a
putEEPROM statement in the first lines of my program, I'll overwrite
the value that the user had put in each time the LCDX is power cycled.
I could also use some advice on determining what memory location to
use. I've opened up the .mpp file and found the programs memory
useage. Would it be safe to add 100 and start at that location?
Thanks in advance,
See the FirstTime() function:
"... For example, you may want to set persistent variables to initial
values that apply only when the program is first executed..." Tom
The RighTime Clock Company, Inc., Cape Coral, Florida USA
+1239 540 5700
-That was exactly what I was looking for.
Tim --- In basicx@basi..., "Tom Becker" <gtbecker@r...> wrote:
> > ... the very first time the LCDX is powered up...
> See the FirstTime() function:
> "... For example, you may want to set persistent variables to
> values that apply only when the program is first executed..." > Tom >
> Tom Becker
> --... ...--
> GTBecker@R... www.RighTime.com
> The RighTime Clock Company, Inc., Cape Coral, Florida USA
> +1239 540 5700