0.3.1 DAC8550

This commit is contained in:
Rob Tillaart 2024-05-23 19:44:03 +02:00
parent ea12c76e13
commit 86a365af13
6 changed files with 15 additions and 8 deletions

View File

@ -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.3.1] - 2024-05-23
- add support for ARDUINO_ARCH_MBED
## [0.3.0] - 2024-01-20
- Fix #8, improve handling SPI dependency.
- update examples

View File

@ -2,7 +2,7 @@
// FILE: DAC8550.cpp
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8550 SPI Digital Analog Convertor
// VERSION: 0.3.0
// VERSION: 0.3.1
// DATE: 2021-02-04
// URL: https://github.com/RobTillaart/DAC8550
@ -110,7 +110,7 @@ void DAC8550::updateDevice()
_mySPI->transfer(_value & 0xFF);
_mySPI->endTransaction();
}
else // Software SPI
else // Software SPI
{
swSPI_transfer(configRegister);
swSPI_transfer(_value >> 8);

View File

@ -2,8 +2,8 @@
//
// FILE: DAC8550.h
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8550 SPI Digital Analog Convertor
// VERSION: 0.3.0
// PURPOSE: Arduino library for DAC8550 SPI Digital Analog Convertor
// VERSION: 0.3.1
// DATE: 2021-02-04
// URL: https://github.com/RobTillaart/DAC8550
@ -12,7 +12,7 @@
#include "SPI.h"
#define DAC8550_LIB_VERSION (F("0.3.0"))
#define DAC8550_LIB_VERSION (F("0.3.1"))
#define DAC8550_POWERDOWN_NORMAL 0
@ -22,7 +22,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

View File

@ -8,6 +8,7 @@ DAC8550 KEYWORD1
begin KEYWORD2
setValue KEYWORD2
getValue KEYWORD2
setPowerDown KEYWORD2
getPowerDownMode KEYWORD2

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/DAC8550"
},
"version": "0.3.0",
"version": "0.3.1",
"frameworks": "*",
"platforms": "*",
"headers": "DAC8550.h"

View File

@ -1,5 +1,5 @@
name=DAC8550
version=0.3.0
version=0.3.1
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for DAC8550 SPI DAC Digital Analog Convertor