diff --git a/CHANGELOG.md b/CHANGELOG.md index ece77f7..b51e56c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [0.5.4] - 2023-09-16 +## [0.6.1] - 2023-09-16 +- add Wire1 support for ESP32 +- fix changelog.md + + +## [0.6.0] - 2023-09-16 - fix #42 ReadObject, WriteObject for FRAM32 - add examples - minor edits diff --git a/FRAM.cpp b/FRAM.cpp index ca6ba32..f603e9f 100644 --- a/FRAM.cpp +++ b/FRAM.cpp @@ -1,7 +1,7 @@ // // FILE: FRAM.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.6.0 +// VERSION: 0.6.1 // DATE: 2018-01-24 // PURPOSE: Arduino library for I2C FRAM // URL: https://github.com/RobTillaart/FRAM_I2C @@ -42,7 +42,6 @@ int FRAM::begin(int sda, int scl, const uint8_t address, { if ((address < 0x50) || (address > 0x57)) return FRAM_ERROR_ADDR; - _wire = &Wire; _address = address; if ((sda < 255) && (scl < 255)) { diff --git a/FRAM.h b/FRAM.h index 1b50b8d..7c10073 100644 --- a/FRAM.h +++ b/FRAM.h @@ -2,7 +2,7 @@ // // FILE: FRAM.h // AUTHOR: Rob Tillaart -// VERSION: 0.6.0 +// VERSION: 0.6.1 // DATE: 2018-01-24 // PURPOSE: Arduino library for I2C FRAM // URL: https://github.com/RobTillaart/FRAM_I2C @@ -12,7 +12,7 @@ #include "Wire.h" -#define FRAM_LIB_VERSION (F("0.6.0")) +#define FRAM_LIB_VERSION (F("0.6.1")) #define FRAM_OK 0 @@ -180,7 +180,7 @@ class FRAM32 : public FRAM write(memAddr, (uint8_t *) &obj, sizeof(obj)); return memAddr + sizeof(obj); }; - + template uint32_t readObject(uint32_t memAddr, T &obj) { read(memAddr, (uint8_t *) &obj, sizeof(obj)); diff --git a/README.md b/README.md index cbc1216..87bd2b9 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,12 @@ Not tested: expect the **MB85RC1MT** can be addressed with 2 instances of **FRAM too with adjacent addresses. +#### Related + +- https://github.com/RobTillaart/I2C_EEPROM (eeprom) +- https://github.com/RobTillaart/I2C_24LC1025 (eeprom) + + ## Interface ```cpp diff --git a/library.json b/library.json index d359dc6..75f3e56 100644 --- a/library.json +++ b/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/FRAM_I2C.git" }, - "version": "0.6.0", + "version": "0.6.1", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/library.properties b/library.properties index 3ef9049..2718eb0 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=FRAM_I2C -version=0.6.0 +version=0.6.1 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for I2C FRAM for persistent storage.