mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-09-19 16:46:11 -04:00
0.4.2 AD524X
This commit is contained in:
parent
2c27e94c0a
commit
652fbf1549
@ -1,7 +1,7 @@
|
||||
//
|
||||
// FILE: AD524X.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.4.1
|
||||
// VERSION: 0.4.2
|
||||
// PURPOSE: I2C digital potentiometer AD5241 AD5242
|
||||
// DATE: 2013-10-12
|
||||
// URL: https://github.com/RobTillaart/AD524X
|
||||
@ -34,7 +34,6 @@ AD524X::AD524X(const uint8_t address, TwoWire *wire)
|
||||
#if defined (ESP8266) || defined(ESP32)
|
||||
bool AD524X::begin(uint8_t dataPin, uint8_t clockPin)
|
||||
{
|
||||
_wire = &Wire;
|
||||
if ((dataPin < 255) && (clockPin < 255))
|
||||
{
|
||||
_wire->begin(dataPin, clockPin);
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// FILE: AD524X.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.4.1
|
||||
// VERSION: 0.4.2
|
||||
// PURPOSE: I2C digital PotentioMeter AD5241 AD5242
|
||||
// DATE: 2013-10-12
|
||||
// URL: https://github.com/RobTillaart/AD524X
|
||||
@ -12,7 +12,7 @@
|
||||
#include "Wire.h"
|
||||
|
||||
|
||||
#define AD524X_LIB_VERSION (F("0.4.1"))
|
||||
#define AD524X_LIB_VERSION (F("0.4.2"))
|
||||
|
||||
|
||||
#define AD524X_OK 0
|
||||
|
@ -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.4.2] - 2023-09-21
|
||||
- add Wire1 support for ESP32
|
||||
- update readme.md
|
||||
|
||||
|
||||
## [0.4.1] - 2023-02-26
|
||||
- fix #17 support **AD5241::write()**
|
||||
- update readme.md
|
||||
|
@ -2,8 +2,11 @@
|
||||
[![Arduino CI](https://github.com/RobTillaart/AD524X/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
|
||||
[![Arduino-lint](https://github.com/RobTillaart/AD524X/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/AD524X/actions/workflows/arduino-lint.yml)
|
||||
[![JSON check](https://github.com/RobTillaart/AD524X/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/AD524X/actions/workflows/jsoncheck.yml)
|
||||
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/AD524X.svg)](https://github.com/RobTillaart/AD524X/issues)
|
||||
|
||||
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/AD524X/blob/master/LICENSE)
|
||||
[![GitHub release](https://img.shields.io/github/release/RobTillaart/AD524X.svg?maxAge=3600)](https://github.com/RobTillaart/AD524X/releases)
|
||||
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/AD524X.svg)](https://registry.platformio.org/libraries/robtillaart/AD524X)
|
||||
|
||||
|
||||
# AD524X
|
||||
@ -24,7 +27,7 @@ An important property of the devices is that they defaults
|
||||
to their mid position at startup.
|
||||
|
||||
The library also defines AD524X_MIDPOINT == 127.
|
||||
To be used to set to defined mid point.
|
||||
To be used to set to defined mid-point.
|
||||
|
||||
|
||||
#### Related libraries
|
||||
@ -34,6 +37,12 @@ This library is related to
|
||||
- https://github.com/RobTillaart/AD520X multi port digital potentiometer.
|
||||
|
||||
|
||||
#### Compatibles (?)
|
||||
|
||||
The AD5243 (fixed address) and AD5248 (2 address pins) are very close but
|
||||
not compatible with this library. See future.
|
||||
|
||||
|
||||
## I2C address
|
||||
|
||||
The AD524X has two address lines to configure the I2C address. 0x2C - 0x2F
|
||||
@ -132,8 +141,20 @@ The examples show the basic working of the functions.
|
||||
|
||||
#### Could
|
||||
|
||||
- investigate AD5243 compatibility (or separate library?)
|
||||
- has no O1 and O2 lines.
|
||||
|
||||
|
||||
#### Wont
|
||||
|
||||
- make midpoint 128
|
||||
|
||||
|
||||
## Support
|
||||
|
||||
If you appreciate my libraries, you can support the development and maintenance.
|
||||
Improve the quality of the libraries by providing issues and Pull Requests, or
|
||||
donate through PayPal or GitHub sponsors.
|
||||
|
||||
Thank you,
|
||||
|
||||
|
@ -15,9 +15,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/AD524X"
|
||||
},
|
||||
"version": "0.4.1",
|
||||
"version": "0.4.2",
|
||||
"license": "MIT",
|
||||
"frameworks": "arduino",
|
||||
"frameworks": "*",
|
||||
"platforms": "*",
|
||||
"headers": "AD524X.h"
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=AD524X
|
||||
version=0.4.1
|
||||
version=0.4.2
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino Library for AD524X
|
||||
|
Loading…
Reference in New Issue
Block a user