diff --git a/libraries/AD985X/AD985X.cpp b/libraries/AD985X/AD985X.cpp index c6af7575..0d787b5d 100644 --- a/libraries/AD985X/AD985X.cpp +++ b/libraries/AD985X/AD985X.cpp @@ -1,7 +1,7 @@ // // FILE: AD985X.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.7.0 +// VERSION: 0.7.1 // DATE: 2019-02-08 // PURPOSE: Class for AD9850 and AD9851 function generator // URL: https://github.com/RobTillaart/AD985X @@ -11,9 +11,9 @@ // UNO HARDWARE SPI PINS -#define SPI_CLOCK 13 // not portable. -#define SPI_MISO 12 -#define SPI_MOSI 11 +// #define SPI_CLOCK 13 // not portable. +// #define SPI_MISO 12 +// #define SPI_MOSI 11 #define AD985X_POWERDOWN 0x04 diff --git a/libraries/AD985X/AD985X.h b/libraries/AD985X/AD985X.h index b6240f72..5512510c 100644 --- a/libraries/AD985X/AD985X.h +++ b/libraries/AD985X/AD985X.h @@ -2,7 +2,7 @@ // // FILE: AD985X.h // AUTHOR: Rob Tillaart -// VERSION: 0.7.0 +// VERSION: 0.7.1 // DATE: 2019-02-08 // PURPOSE: Class for AD9850 and AD9851 function generator // URL: https://github.com/RobTillaart/AD985X @@ -12,11 +12,14 @@ #include "SPI.h" -#define AD985X_LIB_VERSION (F("0.7.0")) +#define AD985X_LIB_VERSION (F("0.7.1")) #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 @@ -107,7 +110,7 @@ protected: uint8_t _config = 0; int32_t _offset = 0; bool _autoUpdate = true; - // _factoryMask see PR #32, + // _factoryMask see PR #32, // 0xFD is safe value for both AD9850/51 uint8_t _factoryMask = 0xFD; }; diff --git a/libraries/AD985X/CHANGELOG.md b/libraries/AD985X/CHANGELOG.md index cedf2229..06920294 100644 --- a/libraries/AD985X/CHANGELOG.md +++ b/libraries/AD985X/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.7.1] - 2024-05-24 +- add support for ARDUINO_ARCH_MBED + ## [0.7.0] - 2024-02-20 - Fix #33 AD9851::setRefClockHigh(), thanks to wh201906 - extended PR #32 to be more robust. diff --git a/libraries/AD985X/README.md b/libraries/AD985X/README.md index b26f61bb..28f78710 100644 --- a/libraries/AD985X/README.md +++ b/libraries/AD985X/README.md @@ -41,7 +41,6 @@ way more functionality. Note: mainly tested on Arduino UNO. - #### 0.5.0 Breaking change Version 0.5.0 introduced a breaking change to improve handling the SPI dependency. @@ -153,7 +152,6 @@ communication when the **SELECT** is HIGH. ``` - The **DATA** line of the device is connected to the output of an **AND** port. The inputs if the **AND** port are (a) the SPI bus **DATA** line and (b) the **SELECT** pin. Strictly for the **DATA** this is not needed as data will only clock in if there is a **CLOCK**. diff --git a/libraries/AD985X/library.json b/libraries/AD985X/library.json index 89dce947..b58ce307 100644 --- a/libraries/AD985X/library.json +++ b/libraries/AD985X/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/AD985X.git" }, - "version": "0.7.0", + "version": "0.7.1", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/libraries/AD985X/library.properties b/libraries/AD985X/library.properties index ddb88884..2da89ec7 100644 --- a/libraries/AD985X/library.properties +++ b/libraries/AD985X/library.properties @@ -1,5 +1,5 @@ name=AD985X -version=0.7.0 +version=0.7.1 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for AD9850 and AD9851 function generators. Supports both hardware SPI as software SPI.