Driver library for Microchip I2C EERAM (47x04 and 47x16) 4 kbit or 16 kbit EEPROM backed SRAM.
Diff: EERAM.h
- Revision:
- 7:038c52e2268b
- Parent:
- 6:b3f9b29b07ba
--- a/EERAM.h Fri Aug 04 05:19:38 2017 +0000 +++ b/EERAM.h Sun Oct 29 18:31:47 2017 +0000 @@ -104,7 +104,7 @@ * @param A1 EERAM A1 pin state (true = high, false = low) * @param A2 EERAM A2 pin state (true = high, false = low) */ - EERAM(I2C *i2c, uint16_t memorySize, bool A1 = false, bool A2 = false) : + EERAM(I2C &i2c, uint16_t memorySize, bool A1 = false, bool A2 = false) : _i2c(i2c), _memorySize(memorySize) { @@ -219,7 +219,7 @@ { if (direct) { - success = _i2c->read(_sramAddressRead, destinationAsBytes, readLength) == 0; + success = _i2c.read(_sramAddressRead, destinationAsBytes, readLength) == 0; } else { @@ -454,7 +454,7 @@ static const int TIME_STORE_16_MS = 25; static const int TIME_STORE_04_MS = 8; static const int TIME_STORE_STATUS_MS = 1; - I2C *_i2c; + I2C &_i2c; uint16_t _memorySize; uint8_t _sramAddressWrite; uint8_t _sramAddressRead;