Shop OBEX P1 Docs P2 Docs Learn Events
Can I save a single array element? — Parallax Forums

Can I save a single array element?

lardomlardom Posts: 1,659
edited 2011-11-23 17:36 in General Discussion
I found a way to write to a single element in a variable array but my excitement died soon after. "Do I have write to the whole array in the eeprom just to update one element?"

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-11-23 16:56
    Is this for the Propeller or the BASIC Stamp? Each has its own forum, in which posting would make the intent of your question clearer.

    -Phil
  • lardomlardom Posts: 1,659
    edited 2011-11-23 17:10
    Propeller. I'm working on a way to prevent excessive rewrites to the same address.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-11-23 17:29
    Okay. There's no reason to have to write the entire array. Writing individual elements is fine. You will have to use one of the I2C objects to do this, of course.

    In the future, it would be better to post Propeller questions to the Propeller forum, rather than here.

    -Phil
  • lardomlardom Posts: 1,659
    edited 2011-11-23 17:36
    Thanks Phil.
Sign In or Register to comment.