Hello all,
just try to get my feet wet with reading/writing to my Axon II's eeprom. Ive read all of webbots info (not sure if i understand it all yet, but hopefully will) and im getting some warning from AVR studio.
here is just the parts of code involving eeprom
//eeprom store var
int x_max_position;
//write to eeprom
x_max_position=10;
eeprom_write_byte(x_max_position, left_joy_x_max);
//display
rprintf("XMP=%d",eeprom_read_byte(x_max_position));
it gives me a warning saying:
warning: passing argument 1 of 'eeprom_write_byte' makes pointer from integer without a cast
also, returns the value 0, not 10
I read about having to include "EEMEM" in the variable but the compiler doesnt like it
Can anybody see my error? probably syntax error
thanks,