mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.5.0 DAC8552
This commit is contained in:
parent
d41690ed23
commit
5d22a20b4b
@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.5.0] - 2024-01-20
|
||||
- Fix #16, improve handling SPI dependency.
|
||||
- update examples
|
||||
|
||||
----
|
||||
|
||||
## [0.4.0] - 2023-12-09
|
||||
- Fix #14 bug, buffer select for B channel. Kudos to sjthomsen.
|
||||
- invalidates all previous versions.
|
||||
|
@ -2,7 +2,7 @@
|
||||
// FILE: DAC8552.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: Arduino library for DAC8552 SPI Digital Analog Convertor
|
||||
// VERSION: 0.4.0
|
||||
// VERSION: 0.5.0
|
||||
// DATE: 2017-12-14
|
||||
// URL: https://github.com/RobTillaart/DAC8552
|
||||
|
||||
@ -41,9 +41,9 @@ void DAC8552::begin()
|
||||
|
||||
if(_hwSPI)
|
||||
{
|
||||
_mySPI->end();
|
||||
_mySPI->begin();
|
||||
delay(1);
|
||||
// _mySPI->end();
|
||||
// _mySPI->begin();
|
||||
// delay(1);
|
||||
}
|
||||
else // SOFTWARE SPI
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
// FILE: DAC8552.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: Arduino library for DAC8552 SPI Digital Analog Convertor
|
||||
// VERSION: 0.4.0
|
||||
// VERSION: 0.5.0
|
||||
// DATE: 2017-12-14
|
||||
// URL: https://github.com/RobTillaart/DAC8552
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
#include "SPI.h"
|
||||
|
||||
|
||||
#define DAC8552_LIB_VERSION (F("0.4.0"))
|
||||
#define DAC8552_LIB_VERSION (F("0.5.0"))
|
||||
|
||||
|
||||
#define DAC8552_POWERDOWN_NORMAL 0
|
||||
|
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017-2023 Rob Tillaart
|
||||
Copyright (c) 2017-2024 Rob Tillaart
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -21,6 +21,14 @@ The DAC8552 is a SPI based 16 bit DAC with two channels.
|
||||
**Warning** This library is not tested extensively.
|
||||
|
||||
|
||||
|
||||
#### 0.5.0 Breaking change
|
||||
|
||||
Version 0.5.0 introduced a breaking change to improve handling the SPI dependency.
|
||||
The user has to call **SPI.begin()** or equivalent before calling **DAC.begin()**.
|
||||
Optionally the user can provide parameters to the **SPI.begin(...)**
|
||||
|
||||
|
||||
#### 0.4.0 Breaking change
|
||||
|
||||
Bugfix channel select bit, invalidates all pre 0.4.0 versions
|
||||
|
@ -18,6 +18,8 @@ void setup()
|
||||
Serial.print("DAC8552_LIB_VERSION: ");
|
||||
Serial.println(DAC8552_LIB_VERSION);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
mydac.begin();
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,8 @@ void setup()
|
||||
Serial.print("DAC8552_LIB_VERSION: ");
|
||||
Serial.println(DAC8552_LIB_VERSION);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
mydac.begin();
|
||||
|
||||
mydac.setValue(chanA, 0);
|
||||
|
@ -22,6 +22,8 @@ void setup()
|
||||
Serial.print("DAC8552_LIB_VERSION: ");
|
||||
Serial.println(DAC8552_LIB_VERSION);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
mydac.begin();
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,8 @@ void setup()
|
||||
Serial.print("DAC8552_LIB_VERSION: ");
|
||||
Serial.println(DAC8552_LIB_VERSION);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
mydac.begin();
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,8 @@ void setup()
|
||||
Serial.print("DAC8552_LIB_VERSION: ");
|
||||
Serial.println(DAC8552_LIB_VERSION);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
mydac.begin();
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,8 @@ void setup()
|
||||
Serial.print("DAC8552_LIB_VERSION: ");
|
||||
Serial.println(DAC8552_LIB_VERSION);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
mydac.begin();
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/DAC8552"
|
||||
},
|
||||
"version": "0.4.0",
|
||||
"version": "0.5.0",
|
||||
"license": "MIT",
|
||||
"frameworks": "*",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=DAC8552
|
||||
version=0.4.0
|
||||
version=0.5.0
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for DAC8532 and DAC8552 SPI Digital Analog Convertor.
|
||||
|
Loading…
x
Reference in New Issue
Block a user