Shop OBEX P1 Docs P2 Docs Learn Events
Data logging on EEPROM — Parallax Forums

Data logging on EEPROM

morris4019morris4019 Posts: 145
edited 2009-06-03 17:48 in Propeller 1
I've seen the SD card used as a data logger, but it is possible to write data to the EEPROM correct? Say a small amount of data containing a previous BEACON ID, or any ERROR information from last run?

-Mike

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
======

······ I'll try everything once [noparse]:)[/noparse]

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-06-03 17:48
    Yes. You can use any of the I2C drivers in the Object Exchange including the one in the BS2 Compatibility Functions object.

    You can either write data to the (unused) end of EEPROM or you can write it to the same address as that of your variable and have it appear there when your program starts up (if you have a long variable FOO, you'd write a 4 byte value to location @FOO in EEPROM and FOO would have that value when the program starts up next time).
Sign In or Register to comment.