This is linked-to by Arduino.cc but it doesn't work (on, for example, a Uno).
Please make the simple fix:
get_traw(), get_praw(), get_c00() and get_c10()
have if(tmp & (1 << nn))
where nn is > 15. Change them to
if(tmp & (1L << nn))
and the library will function.
If you also changei2c_eeprom_read_uint8_t( uint8_t deviceaddress, uint8_t eeaddress ) to call
Wire.requestFrom(deviceaddress, (uint8_t)1);
This is linked-to by Arduino.cc but it doesn't work (on, for example, a Uno). Please make the simple fix: get_traw(), get_praw(), get_c00() and get_c10() have
if(tmp & (1 << nn))
where nn is > 15. Change them toif(tmp & (1L << nn))
and the library will function.If you also change
i2c_eeprom_read_uint8_t( uint8_t deviceaddress, uint8_t eeaddress )
to callWire.requestFrom(deviceaddress, (uint8_t)1);
the Library will compile without warnings.
Thanks!