diff --git a/libraries/ADC081S/ADC081S.cpp b/libraries/ADC081S/ADC081S.cpp index 4ef80be0..65ab7ee4 100644 --- a/libraries/ADC081S/ADC081S.cpp +++ b/libraries/ADC081S/ADC081S.cpp @@ -1,7 +1,7 @@ // // FILE: ADC081S.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.2.1 +// VERSION: 0.2.2 // DATE: 2024-01-10 // PURPOSE: Arduino library for ADC081S 8 bit ADC (SPI) // URL: https://github.com/RobTillaart/ADC081S @@ -150,7 +150,7 @@ void ADC081S::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/ADC081S/ADC081S.h b/libraries/ADC081S/ADC081S.h index 474c72c9..4dbad666 100644 --- a/libraries/ADC081S/ADC081S.h +++ b/libraries/ADC081S/ADC081S.h @@ -2,7 +2,7 @@ // // FILE: ADC081S.h // AUTHOR: Rob Tillaart -// VERSION: 0.2.1 +// VERSION: 0.2.2 // DATE: 2024-01-10 // PURPOSE: Arduino library for ADC081S 8 bit ADC (SPI) // URL: https://github.com/RobTillaart/ADC081S @@ -13,11 +13,14 @@ #include "SPI.h" -#define ADC081S_LIB_VERSION (F("0.2.1")) +#define ADC081S_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/ADC081S/CHANGELOG.md b/libraries/ADC081S/CHANGELOG.md index f7b2b22e..d589fe58 100644 --- a/libraries/ADC081S/CHANGELOG.md +++ b/libraries/ADC081S/CHANGELOG.md @@ -6,9 +6,13 @@ 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 +- minor edits + ## [0.2.1] - 2024-03-03 - Fix #6, add example for SPI1 -- update Github/actions to v4 (build-CI) +- update GitHub/actions to v4 (build-CI) - minor edits ## [0.2.0] - 2024-01-19 diff --git a/libraries/ADC081S/README.md b/libraries/ADC081S/README.md index 793b7708..b37e5697 100644 --- a/libraries/ADC081S/README.md +++ b/libraries/ADC081S/README.md @@ -16,7 +16,7 @@ Arduino library for ADC081S 8 bit, ADC101S 10 bit and ADC121S 12 bit ADC (SPI) s ## Description -Experimental. +**Experimental** This library provides three classes, ADC081S, ADC101S and ADC121S. These are respectively an 8 bit, a 10 bit and a 12 bit ADC convertor. diff --git a/libraries/ADC081S/library.json b/libraries/ADC081S/library.json index 9549ecff..9fe4f541 100644 --- a/libraries/ADC081S/library.json +++ b/libraries/ADC081S/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/ADC081S.git" }, - "version": "0.2.1", + "version": "0.2.2", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/libraries/ADC081S/library.properties b/libraries/ADC081S/library.properties index d45e76e3..8197d67b 100644 --- a/libraries/ADC081S/library.properties +++ b/libraries/ADC081S/library.properties @@ -1,5 +1,5 @@ name=ADC081S -version=0.2.1 +version=0.2.2 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for ADC081S 8 bit ADC (SPI).