0.2.0 AD5245

This commit is contained in:
rob tillaart 2023-02-03 08:42:59 +01:00
parent 57f21c3b66
commit 09d5a9d6b4
5 changed files with 17 additions and 12 deletions

View File

@ -1,7 +1,7 @@
//
// FILE: AD5245.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.2
// VERSION: 0.2.0
// PURPOSE: Arduino library for I2C digital potentiometer AD5245.
// DATE: 2022-07-31
// URL: https://github.com/RobTillaart/AD5245
@ -80,8 +80,8 @@ uint8_t AD5245::read()
uint8_t AD5245::readDevice()
{
Wire.requestFrom(_address, (uint8_t)1);
return Wire.read();
_wire->requestFrom(_address, (uint8_t)1);
return _wire->read();
}
@ -99,10 +99,10 @@ uint8_t AD5245::shutDown()
//
uint8_t AD5245::send(const uint8_t cmd, const uint8_t value)
{
Wire.beginTransmission(_address);
Wire.write(cmd);
Wire.write(value);
return Wire.endTransmission();
_wire->beginTransmission(_address);
_wire->write(cmd);
_wire->write(value);
return _wire->endTransmission();
}

View File

@ -2,7 +2,7 @@
//
// FILE: AD5245.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.2
// VERSION: 0.2.0
// PURPOSE: Arduino library for I2C digital potentiometer AD5245.
// DATE: 2022-07-31
// URL: https://github.com/RobTillaart/AD5245
@ -14,7 +14,7 @@
#include "Wire.h"
#define AD5245_LIB_VERSION (F("0.1.2"))
#define AD5245_LIB_VERSION (F("0.2.0"))
#define AD5245_OK 0
@ -55,5 +55,5 @@ private:
};
// -- END OF FILE --
// -- END OF FILE --

View File

@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.2.0] - 2023-01-16
- Fix #4 Wire bug
----
## [0.1.2] - 2023-01-16
- update GitHub actions
- update license

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/AD5245"
},
"version": "0.1.2",
"version": "0.2.0",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=AD5245
version=0.1.2
version=0.2.0
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino Library for AD5245 digital potentiometer.