361 bytes. And that was a small example...
361 bytes. And that was a small example...
Dave
Always wear safety glasses while programming.
That's a pretty good trade-off; 361 bytes of EEPROM saving 2350 bytes of program space. I2C EEPROM is inexpensive even for 128KB. I haven't analyzed your code but suspect you could save even more by wasting some EEPROM - using fixed length records and accessing them sequentially.
I thought about that but was not sure how the Connect One would like it. Being a little short on time I just did what I knew would work for the sample.
There is always room for improvement.
Dave
Always wear safety glasses while programming.
Perhaps, store a length byte at the start of the strings?
But, as is, I think the EEPROM achieves our goal of reducing the PBP code burden. Others might have even better ideas.
Last edited by dhouston; - 22nd June 2011 at 21:47.
It would be cool if the I2C command had "WAIT"...Perhaps, store a length byte at the start of the strings?
Dave
Always wear safety glasses while programming.
Or a nice small ASM routine to parse...
Dave
Always wear safety glasses while programming.
Bookmarks