diff --git a/README.md b/README.md index d94fcb0..5e23d8c 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ The **JC_EEPROM Library** has been tested with: - ST Micro M24M02 (2M bit) - Atmel AT24C256C (thanks to searobin) - Microchip 24C16B, 24C32 (thanks to Diogko) +- AT24C02 and ESP-12F/ESP8266 (thanks to Thorsten) The **JC_EEPROM Library** will **NOT** work with Microchip 24xx1025 as its control byte does not conform to the following assumptions. diff --git a/library.properties b/library.properties index 13eb26b..8f2c486 100644 --- a/library.properties +++ b/library.properties @@ -1,9 +1,9 @@ name=JC_EEPROM -version=1.0.7 +version=1.0.8 author=Jack Christensen maintainer=Jack Christensen sentence=Arduino library to support external I2C EEPROMs. -paragraph=Copyright (C) 2022 by Jack Christensen and licensed under GNU GPL v3.0. +paragraph=Copyright (C) 2022-2023 by Jack Christensen and licensed under GNU GPL v3.0. category=Data Storage url=https://github.com/JChristensen/JC_EEPROM -architectures=avr +architectures=* diff --git a/src/JC_EEPROM.cpp b/src/JC_EEPROM.cpp index 204d4f3..3f0a7dd 100644 --- a/src/JC_EEPROM.cpp +++ b/src/JC_EEPROM.cpp @@ -76,7 +76,7 @@ uint8_t JC_EEPROM::write(uint32_t addr, uint8_t* values, uint16_t nBytes) Wire.beginTransmission(ctrlByte); if (m_nAddrBytes == 2) Wire.write(static_cast(addr >> 8)); // high addr byte Wire.write(static_cast(addr)); // low addr byte - Wire.write(values, nWrite); + Wire.write(values, static_cast(nWrite)); txStatus = Wire.endTransmission(); if (txStatus != 0) return txStatus; @@ -119,7 +119,7 @@ uint8_t JC_EEPROM::read(uint32_t addr, uint8_t* values, uint16_t nBytes) uint8_t rxStatus = Wire.endTransmission(); if (rxStatus != 0) return rxStatus; // read error - Wire.requestFrom(ctrlByte, nRead); + Wire.requestFrom(ctrlByte, static_cast(nRead)); for (byte i=0; i