Skip to content

Commit

Permalink
add Wire1 support for ESP32 (#44)
Browse files Browse the repository at this point in the history
- add Wire1 support for ESP32
- fix changelog.md
  • Loading branch information
RobTillaart authored Sep 25, 2023
1 parent 221e8dc commit bd53eca
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions FRAM.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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))
{
Expand Down
6 changes: 3 additions & 3 deletions FRAM.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -180,7 +180,7 @@ class FRAM32 : public FRAM
write(memAddr, (uint8_t *) &obj, sizeof(obj));
return memAddr + sizeof(obj);
};

template <class T> uint32_t readObject(uint32_t memAddr, T &obj)
{
read(memAddr, (uint8_t *) &obj, sizeof(obj));
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=FRAM_I2C
version=0.6.0
version=0.6.1
author=Rob Tillaart <[email protected]>
maintainer=Rob Tillaart <[email protected]>
sentence=Arduino library for I2C FRAM for persistent storage.
Expand Down

0 comments on commit bd53eca

Please sign in to comment.