system
1
Can anyone tell me an easy way to make my arduino remember some values after powerloss? The user is changing them sometimes..
the values are like this:
100000
04/2013
123900
09/2013
was thinking to maybe use SD card, but I guess there is a easier way
system
3
cut them up then?
cause I cant store them there as they are now..
and also, I cant store a value like 09 in EEPROM
system
4
or maybe I can store them in progmem... hmmm
system
6
I get an error everytime I try to save 09 in my EEPROM.. dont know why.. maybe the chip is corrupt..
anyway, if I cut it in pieces, like two numbers in each eeprom address like this:
EEPROM.write(0, 1);
EEPROM.write(1, 00);
EEPROM.write(2, 00);
how do I put them together again when reading so I get "10000"?
Arrch
7
h_vestbo:
I get an error everytime I try to save 09 in my EEPROM.. dont know why.. maybe the chip is corrupt..
anyway, if I cut it in pieces, like two numbers in each eeprom address like this:
EEPROM.write(0, 1);
EEPROM.write(1, 00);
EEPROM.write(2, 00);
how do I put them together again when reading so I get "10000"?
Depends on if you mean "10000" or 10000, because those are stored completely differently.
system
8
Got it working 
Also, the reason I couldnt store 9 was that I had it like 09
You don't store the number in decimal, you store the binary value. So for an int you store the high byte in one location and the low byte next to it.