0.5.1 AD520X

This commit is contained in:
Rob Tillaart 2024-05-23 20:06:36 +02:00
parent 2d274eb80f
commit 01e238e8b2
6 changed files with 16 additions and 6 deletions

View File

@ -2,7 +2,7 @@
// FILE: AD520X.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-07-24
// VERSION: 0.5.0
// VERSION: 0.5.1
// PURPOSE: Arduino library for AD5204 and AD5206 digital potentiometers
// (+ AD8400, AD8402, AD8403)
// URL: https://github.com/RobTillaart/AD520X

View File

@ -3,7 +3,7 @@
// FILE: AD520X.h
// AUTHOR: Rob Tillaart
// DATE: 2020-07-24
// VERSION: 0.5.0
// VERSION: 0.5.1
// PURPOSE: Arduino library for AD5204 and AD5206 digital potentiometers
// (+ AD8400, AD8402, AD8403)
// URL: https://github.com/RobTillaart/AD520X
@ -13,20 +13,25 @@
#include "SPI.h"
#define AD520X_LIB_VERSION (F("0.5.0"))
#define AD520X_LIB_VERSION (F("0.5.1"))
#ifndef AD520X_MIDDLE_VALUE
#define AD520X_MIDDLE_VALUE 128
#endif
#ifndef __SPI_CLASS__
#if defined(ARDUINO_ARCH_RP2040)
// MBED must be tested before RP2040
#if defined(ARDUINO_ARCH_MBED)
#define __SPI_CLASS__ SPIClass
#elif defined(ARDUINO_ARCH_RP2040)
#define __SPI_CLASS__ SPIClassRP2040
#else
#define __SPI_CLASS__ SPIClass
#endif
#endif
class AD520X
{
public:

View File

@ -6,10 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.5.1] - 2024-05-23
- add support for ARDUINO_ARCH_MBED
## [0.5.0] - 2024-01-19
- Fix #23, improve handling SPI dependency.
- add SPIClass guard
----
## [0.4.0] - 2023-11-26
- refactor constructor interface - breaking changes.

View File

@ -30,6 +30,7 @@ powerOn KEYWORD2
powerOff KEYWORD2
isPowerOn KEYWORD2
usesHWSPI KEYWORD2
# Constants (LITERAL1)
AD520X_LIB_VERSION LITERAL1

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/AD520X.git"
},
"version": "0.5.0",
"version": "0.5.1",
"license": "MIT",
"frameworks": "*",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=AD520X
version=0.5.0
version=0.5.1
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for SPI AD5204 and AD5206 digital potentiometers