Hello
Today I was using the eeprom using the native library of avrlibc #include <avr/eeprom.h>
The function in documentation is:
uint8_t eeprom_read_byte ( const uint8_t * __p )
Read one byte from EEPROM address __p.
it return a byte and needs as argument a pointer to an adress
So far so good, my problem starts now when I use the function passing the address of the position.
int adress = 0;//I want position 0
int readValue = eeprom_read_byte(&i);//It wount work as expected don´t understand why
int readValue = eeprom_read_byte((uint8_t *)i);//Doing a cast work's well but why ?