diff --git a/libraries/DAC8554/CHANGELOG.md b/libraries/DAC8554/CHANGELOG.md index 466dd895..b643f0a9 100644 --- a/libraries/DAC8554/CHANGELOG.md +++ b/libraries/DAC8554/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.4.1] - 2024-05-23 +- improve support for ARDUINO_ARCH_MBED + ## [0.4.0] - 2024-01-20 - Fix #15, improve handling SPI dependency. - update examples diff --git a/libraries/DAC8554/DAC8554.cpp b/libraries/DAC8554/DAC8554.cpp index cb7709fc..94b107fa 100644 --- a/libraries/DAC8554/DAC8554.cpp +++ b/libraries/DAC8554/DAC8554.cpp @@ -2,7 +2,7 @@ // FILE: DAC8554.cpp // AUTHOR: Rob Tillaart // PURPOSE: Arduino library for DAC8554 SPI Digital Analog Convertor -// VERSION: 0.4.0 +// VERSION: 0.4.1 // DATE: 2017-12-19 // URL: https://github.com/RobTillaart/DAC8554 @@ -126,7 +126,7 @@ void DAC8554::setSingleValue(uint8_t channel, uint16_t value) void DAC8554::bufferPowerDown(uint8_t channel, uint8_t powerDownMode) { _register[channel] = powerDownMode; - + uint8_t configRegister = _address; configRegister |= DAC8554_BUFFER_WRITE; configRegister |= (channel << 1); @@ -150,7 +150,7 @@ void DAC8554::setPowerDown(uint8_t channel, uint8_t powerDownMode) void DAC8554::setSinglePowerDown(uint8_t channel, uint8_t powerDownMode) { _register[channel] = powerDownMode; - + uint8_t configRegister = _address; configRegister |= DAC8554_SINGLE_WRITE; configRegister |= (channel << 1); diff --git a/libraries/DAC8554/DAC8554.h b/libraries/DAC8554/DAC8554.h index 9a0233f0..c9c5f8d1 100644 --- a/libraries/DAC8554/DAC8554.h +++ b/libraries/DAC8554/DAC8554.h @@ -2,8 +2,8 @@ // // FILE: DAC8554.h // AUTHOR: Rob Tillaart -// PURPOSE: Arduino library for DAC8554 SPI Digital Analog Convertor -// VERSION: 0.4.0 +// PURPOSE: Arduino library for DAC8554 SPI Digital Analog Convertor +// VERSION: 0.4.1 // DATE: 2017-12-19 // URL: https://github.com/RobTillaart/DAC8554 // @@ -11,7 +11,7 @@ #include "Arduino.h" #include "SPI.h" -#define DAC8554_LIB_VERSION (F("0.4.0")) +#define DAC8554_LIB_VERSION (F("0.4.1")) #define DAC8554_POWERDOWN_NORMAL 0x00 #define DAC8554_POWERDOWN_1K 0x40 @@ -20,7 +20,10 @@ #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/DAC8554/README.md b/libraries/DAC8554/README.md index 30ddc9fb..107bd3bb 100644 --- a/libraries/DAC8554/README.md +++ b/libraries/DAC8554/README.md @@ -18,7 +18,7 @@ Arduino library for DAC8554 SPI Digital Analog Convertor. The DAC8554 is a SPI based 16 bit DAC with four channels. -**Warning** This library is not tested extensively +**Warning** This library is not tested extensively. #### 0.4.0 Breaking change @@ -129,7 +129,6 @@ See examples - improve documentation - testing with hardware - #### Should #### Could diff --git a/libraries/DAC8554/keywords.txt b/libraries/DAC8554/keywords.txt index df657ff2..bde0cde5 100644 --- a/libraries/DAC8554/keywords.txt +++ b/libraries/DAC8554/keywords.txt @@ -10,20 +10,19 @@ begin KEYWORD2 bufferValue KEYWORD2 setValue KEYWORD2 getValue KEYWORD2 - setSingleValue KEYWORD2 + bufferPowerDown KEYWORD2 setPowerDown KEYWORD2 getPowerDownMode KEYWORD2 - setSinglePowerDown KEYWORD2 + broadcastBuffer KEYWORD2 broadcastValue KEYWORD2 broadcastPowerDown KEYWORD2 setSPIspeed KEYWORD2 getSPIspeed KEYWORD2 - usesHWSPI KEYWORD2 diff --git a/libraries/DAC8554/library.json b/libraries/DAC8554/library.json index 775504fc..19d18973 100644 --- a/libraries/DAC8554/library.json +++ b/libraries/DAC8554/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/DAC8554" }, - "version": "0.4.0", + "version": "0.4.1", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/libraries/DAC8554/library.properties b/libraries/DAC8554/library.properties index 7eb4c1bc..6368b4e1 100644 --- a/libraries/DAC8554/library.properties +++ b/libraries/DAC8554/library.properties @@ -1,5 +1,5 @@ name=DAC8554 -version=0.4.0 +version=0.4.1 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for DAC8534 and DAC8554 SPI Digital Analog Convertor.