Saving data in an application
I would like to save some values for later use by the propeller. I am reading a count and would like to save that information so that the next time when I turn the unit on it can read that previous count. Please excuse me if I am not asking the question correctly.
Thanks in advance!
Thanks in advance!
Comments
Have a look at the following for some pointers:
this discusses extra storage - eeprom or SD card..
http://forums.parallax.com/forums/default.aspx?f=25&m=167601
the following is specifically for I2C / EEProm the example given here is for the boot eeprom but if you wanted to add an additional eeprom to other pins - just edit pin no.'s .
http://forums.parallax.com/forums/default.aspx?f=25&m=166651
Or otherwise 'bussed' devices on same lines with different addresses -
note - Its a philips protocol - worth reading - especially master/slave - some legalities there..
and if you go the SD card route:
http://forums.parallax.com/forums/default.aspx?f=25&m=162235
either way when it comes to I2C - Mike Green is the man or SD card its Rokicki !!
Thats my humble opinion at least...
Can someone post a snippet of code?
Thanks!
There are similar examples in the I2C Library in the Object Exchange. If you have any questions after
you've looked at them, ask here specifically. Pretty much all of the objects in the Object Exchange have
Demo Programs as part of their archive that illustrate their use. They often include circuit diagrams for
the connection of the related parts.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Thanks!