mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.4.1 DAC8554
This commit is contained in:
parent
eacdd96708
commit
2d274eb80f
@ -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/).
|
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
|
## [0.4.0] - 2024-01-20
|
||||||
- Fix #15, improve handling SPI dependency.
|
- Fix #15, improve handling SPI dependency.
|
||||||
- update examples
|
- update examples
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// FILE: DAC8554.cpp
|
// FILE: DAC8554.cpp
|
||||||
// AUTHOR: Rob Tillaart
|
// AUTHOR: Rob Tillaart
|
||||||
// PURPOSE: Arduino library for DAC8554 SPI Digital Analog Convertor
|
// PURPOSE: Arduino library for DAC8554 SPI Digital Analog Convertor
|
||||||
// VERSION: 0.4.0
|
// VERSION: 0.4.1
|
||||||
// DATE: 2017-12-19
|
// DATE: 2017-12-19
|
||||||
// URL: https://github.com/RobTillaart/DAC8554
|
// 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)
|
void DAC8554::bufferPowerDown(uint8_t channel, uint8_t powerDownMode)
|
||||||
{
|
{
|
||||||
_register[channel] = powerDownMode;
|
_register[channel] = powerDownMode;
|
||||||
|
|
||||||
uint8_t configRegister = _address;
|
uint8_t configRegister = _address;
|
||||||
configRegister |= DAC8554_BUFFER_WRITE;
|
configRegister |= DAC8554_BUFFER_WRITE;
|
||||||
configRegister |= (channel << 1);
|
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)
|
void DAC8554::setSinglePowerDown(uint8_t channel, uint8_t powerDownMode)
|
||||||
{
|
{
|
||||||
_register[channel] = powerDownMode;
|
_register[channel] = powerDownMode;
|
||||||
|
|
||||||
uint8_t configRegister = _address;
|
uint8_t configRegister = _address;
|
||||||
configRegister |= DAC8554_SINGLE_WRITE;
|
configRegister |= DAC8554_SINGLE_WRITE;
|
||||||
configRegister |= (channel << 1);
|
configRegister |= (channel << 1);
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
//
|
//
|
||||||
// FILE: DAC8554.h
|
// FILE: DAC8554.h
|
||||||
// AUTHOR: Rob Tillaart
|
// AUTHOR: Rob Tillaart
|
||||||
// PURPOSE: Arduino library for DAC8554 SPI Digital Analog Convertor
|
// PURPOSE: Arduino library for DAC8554 SPI Digital Analog Convertor
|
||||||
// VERSION: 0.4.0
|
// VERSION: 0.4.1
|
||||||
// DATE: 2017-12-19
|
// DATE: 2017-12-19
|
||||||
// URL: https://github.com/RobTillaart/DAC8554
|
// URL: https://github.com/RobTillaart/DAC8554
|
||||||
//
|
//
|
||||||
@ -11,7 +11,7 @@
|
|||||||
#include "Arduino.h"
|
#include "Arduino.h"
|
||||||
#include "SPI.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_NORMAL 0x00
|
||||||
#define DAC8554_POWERDOWN_1K 0x40
|
#define DAC8554_POWERDOWN_1K 0x40
|
||||||
@ -20,7 +20,10 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifndef __SPI_CLASS__
|
#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
|
#define __SPI_CLASS__ SPIClassRP2040
|
||||||
#else
|
#else
|
||||||
#define __SPI_CLASS__ SPIClass
|
#define __SPI_CLASS__ SPIClass
|
||||||
|
@ -18,7 +18,7 @@ Arduino library for DAC8554 SPI Digital Analog Convertor.
|
|||||||
|
|
||||||
The DAC8554 is a SPI based 16 bit DAC with four channels.
|
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
|
#### 0.4.0 Breaking change
|
||||||
@ -129,7 +129,6 @@ See examples
|
|||||||
- improve documentation
|
- improve documentation
|
||||||
- testing with hardware
|
- testing with hardware
|
||||||
|
|
||||||
|
|
||||||
#### Should
|
#### Should
|
||||||
|
|
||||||
#### Could
|
#### Could
|
||||||
|
@ -10,20 +10,19 @@ begin KEYWORD2
|
|||||||
bufferValue KEYWORD2
|
bufferValue KEYWORD2
|
||||||
setValue KEYWORD2
|
setValue KEYWORD2
|
||||||
getValue KEYWORD2
|
getValue KEYWORD2
|
||||||
|
|
||||||
setSingleValue KEYWORD2
|
setSingleValue KEYWORD2
|
||||||
|
|
||||||
bufferPowerDown KEYWORD2
|
bufferPowerDown KEYWORD2
|
||||||
setPowerDown KEYWORD2
|
setPowerDown KEYWORD2
|
||||||
getPowerDownMode KEYWORD2
|
getPowerDownMode KEYWORD2
|
||||||
|
|
||||||
setSinglePowerDown KEYWORD2
|
setSinglePowerDown KEYWORD2
|
||||||
|
|
||||||
broadcastBuffer KEYWORD2
|
broadcastBuffer KEYWORD2
|
||||||
broadcastValue KEYWORD2
|
broadcastValue KEYWORD2
|
||||||
broadcastPowerDown KEYWORD2
|
broadcastPowerDown KEYWORD2
|
||||||
|
|
||||||
setSPIspeed KEYWORD2
|
setSPIspeed KEYWORD2
|
||||||
getSPIspeed KEYWORD2
|
getSPIspeed KEYWORD2
|
||||||
|
|
||||||
usesHWSPI KEYWORD2
|
usesHWSPI KEYWORD2
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/RobTillaart/DAC8554"
|
"url": "https://github.com/RobTillaart/DAC8554"
|
||||||
},
|
},
|
||||||
"version": "0.4.0",
|
"version": "0.4.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"frameworks": "*",
|
"frameworks": "*",
|
||||||
"platforms": "*",
|
"platforms": "*",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name=DAC8554
|
name=DAC8554
|
||||||
version=0.4.0
|
version=0.4.1
|
||||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||||
sentence=Arduino library for DAC8534 and DAC8554 SPI Digital Analog Convertor.
|
sentence=Arduino library for DAC8534 and DAC8554 SPI Digital Analog Convertor.
|
||||||
|
Loading…
Reference in New Issue
Block a user