That's not quite enough info. The sample code below might help. Maybe someone can update the wiki? Also, this would be a great thing to have a library for; something like:
Eeprom.write(address, value, BYTE);
Eeprom.write(address, value, WORD);
Eeprom.read(address, BYTE);
Eeprom.read(address, WORD);
Here's the eeprom sample (copied by hand so maybe it's wrong):
#include <avr/eeprom.h>
unsigned int addr = 0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
long value = eeprom_read_byte((unsigned char *) addr);
//long value = eeprom_read_word((unsigned int *) addr);
//eeprom_write_byte((unsigned char *) addr, addr); // fill each address with its own value
addr = (addr + 1) % 512;
Serial.println(value);
delay(1000);
}