I have got the exact same chip for an EEPROM as stated on the website tutorial for SPIEEPROM. I also got the hardware interfacing and everything to work using the code provided. http://www.arduino.cc/en/Tutorial/SPIEEPROM
Now I would appreciate some help to understand how to store a "long int" number instead of the "char" as shown in the code. As from the website it seems that you can only write 128 bytes at a time and since in that example they used char (which is 1 byte) they just SPI transfered in the following code:
for (int I=0;I<128;I++)
spi_transfer(buffer); //write data byte
How would this change for a long int (which is 4 bytes, 32 bits). How would the addressing be affected?
PS: I want to store "latitude, longitude" that comes out of the TinyGPS library functions.
Any sample code or nudge in the right direction to explain the EEPROM addressing and storage will be appreciated.