diff --git a/libraries/MS5611_SPI/CHANGELOG.md b/libraries/MS5611_SPI/CHANGELOG.md index 61b3487e..c8e327c8 100644 --- a/libraries/MS5611_SPI/CHANGELOG.md +++ b/libraries/MS5611_SPI/CHANGELOG.md @@ -6,11 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.3.1] - 2024-06-03 +- add support for ARDUINO_ARCH_MBED + ## [0.3.0] - 2024-01-19 - fix #11, improve SPI dependency - solves #6 in a better way. - +---- ## [0.2.0] - 2023-11-30 - refactor constructor interface - breaking changes. diff --git a/libraries/MS5611_SPI/MS5611_SPI.cpp b/libraries/MS5611_SPI/MS5611_SPI.cpp index f5a44392..044886b2 100644 --- a/libraries/MS5611_SPI/MS5611_SPI.cpp +++ b/libraries/MS5611_SPI/MS5611_SPI.cpp @@ -1,7 +1,7 @@ // // FILE: MS5611_SPI.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.3.0 +// VERSION: 0.3.1 // PURPOSE: MS5611 (SPI) Temperature & Pressure library for Arduino // URL: https://github.com/RobTillaart/MS5611_SPI // diff --git a/libraries/MS5611_SPI/MS5611_SPI.h b/libraries/MS5611_SPI/MS5611_SPI.h index 613b8fd0..55ec343e 100644 --- a/libraries/MS5611_SPI/MS5611_SPI.h +++ b/libraries/MS5611_SPI/MS5611_SPI.h @@ -2,7 +2,7 @@ // // FILE: MS5611_SPI.h // AUTHOR: Rob Tillaart -// VERSION: 0.3.0 +// VERSION: 0.3.1 // PURPOSE: S5611 (SPI) Temperature & Pressure library for Arduino // URL: https://github.com/RobTillaart/MS5611_SPI @@ -30,10 +30,13 @@ // CS to GND ==> 0x77 -#define MS5611_SPI_LIB_VERSION (F("0.3.0 EXPERIMENTAL")) +#define MS5611_SPI_LIB_VERSION (F("0.3.1 EXPERIMENTAL")) #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/MS5611_SPI/README.md b/libraries/MS5611_SPI/README.md index 10c3c595..5e8e2db6 100644 --- a/libraries/MS5611_SPI/README.md +++ b/libraries/MS5611_SPI/README.md @@ -25,6 +25,9 @@ This library only implements the SPI interface. It is based upon the 0.3.6 version of the I2C library, see - https://github.com/RobTillaart/MS5611 +If you know a cause or better a solution to the self heating effect, +please let me know (open an issue). + #### 0.3.0 Breaking change @@ -247,7 +250,7 @@ The meaning of the manufacturer and serialCode value is unclear. #### 2nd order pressure compensation -- **setCompensation(bool flag = true)** to enable/desiable the 2nd order compensation. +- **setCompensation(bool flag = true)** to enable/disable the 2nd order compensation. The default = true. Disabling the compensation will be slightly faster but you loose precision. - **getCompensation()** returns flag set above. diff --git a/libraries/MS5611_SPI/library.json b/libraries/MS5611_SPI/library.json index 7108a327..ce68a968 100644 --- a/libraries/MS5611_SPI/library.json +++ b/libraries/MS5611_SPI/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/MS5611_SPI.git" }, - "version": "0.3.0", + "version": "0.3.1", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/libraries/MS5611_SPI/library.properties b/libraries/MS5611_SPI/library.properties index 0f6b3a3b..38ce6511 100644 --- a/libraries/MS5611_SPI/library.properties +++ b/libraries/MS5611_SPI/library.properties @@ -1,5 +1,5 @@ name=MS5611_SPI -version=0.3.0 +version=0.3.1 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library (SPI) for MS5611 temperature and pressure sensor