diff --git a/libraries/ADC08XS/ADC08XS.cpp b/libraries/ADC08XS/ADC08XS.cpp index 7a2bb247..950beb31 100644 --- a/libraries/ADC08XS/ADC08XS.cpp +++ b/libraries/ADC08XS/ADC08XS.cpp @@ -1,9 +1,9 @@ // // FILE: ADC08XS.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.2.1 +// VERSION: 0.2.2 // DATE: 2024-01-13 -// PURPOSE: Arduino library for ADC082S, ADC084S, ADC102S, ADC104S, ADC122S, ADC124S, +// PURPOSE: Arduino library for ADC082S, ADC084S, ADC102S, ADC104S, ADC122S, ADC124S, // 8, 10, 12 bits, 2 or 4 channel ADC (SPI). // URL: https://github.com/RobTillaart/ADC08XS @@ -173,7 +173,7 @@ void ADC08XS::shutDown() if (_hwSPI) // hardware SPI { _mySPI->beginTransaction(_spi_settings); - _mySPI->transfer(0); // 8 pulses + _mySPI->transfer(0); // 8 pulses _mySPI->endTransaction(); } else // Software SPI diff --git a/libraries/ADC08XS/ADC08XS.h b/libraries/ADC08XS/ADC08XS.h index d77d9449..59648c38 100644 --- a/libraries/ADC08XS/ADC08XS.h +++ b/libraries/ADC08XS/ADC08XS.h @@ -2,9 +2,9 @@ // // FILE: ADC08XS.h // AUTHOR: Rob Tillaart -// VERSION: 0.2.1 +// VERSION: 0.2.2 // DATE: 2024-01-13 -// PURPOSE: Arduino library for ADC082S, ADC084S, ADC102S, ADC104S, ADC122S, ADC124S, +// PURPOSE: Arduino library for ADC082S, ADC084S, ADC102S, ADC104S, ADC122S, ADC124S, // 8, 10, 12 bits, 2 or 4 channel ADC (SPI). // URL: https://github.com/RobTillaart/ADC08XS // @@ -14,11 +14,14 @@ #include "SPI.h" -#define ADC08XS_LIB_VERSION (F("0.2.1")) +#define ADC08XS_LIB_VERSION (F("0.2.2")) #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 diff --git a/libraries/ADC08XS/CHANGELOG.md b/libraries/ADC08XS/CHANGELOG.md index 0ba0cbc3..241ddffe 100644 --- a/libraries/ADC08XS/CHANGELOG.md +++ b/libraries/ADC08XS/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.2.2] - 2024-06-02 +- add support for ARDUINO_ARCH_MBED + ## [0.2.1] - 2024-03-03 - Fix #6, add example for SPI1 - update Github/actions to v4 (build-CI) diff --git a/libraries/ADC08XS/README.md b/libraries/ADC08XS/README.md index 83d8ca56..3df99228 100644 --- a/libraries/ADC08XS/README.md +++ b/libraries/ADC08XS/README.md @@ -16,7 +16,7 @@ Arduino library for ADC082S, ADC084S, ADC102S, ADC104S, ADC122S, ADC124S, 8, 10, ## Description -Experimental. +**Experimental** This library provides six classes, - dual channel: ADC082S, ADC102S and ADC122S. diff --git a/libraries/ADC08XS/library.json b/libraries/ADC08XS/library.json index c5b51963..6153022e 100644 --- a/libraries/ADC08XS/library.json +++ b/libraries/ADC08XS/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/ADC08XS.git" }, - "version": "0.2.1", + "version": "0.2.2", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/libraries/ADC08XS/library.properties b/libraries/ADC08XS/library.properties index 396201ce..f21670c4 100644 --- a/libraries/ADC08XS/library.properties +++ b/libraries/ADC08XS/library.properties @@ -1,5 +1,5 @@ name=ADC08XS -version=0.2.1 +version=0.2.2 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for ADC08XS 8, 10, 12 bit ADC (SPI), 2 or 4 channel.