mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.3.0 DAC8550
This commit is contained in:
parent
bc8d6d00f3
commit
dc3f044bf9
@ -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.3.0] - 2024-01-20
|
||||
- Fix #8, improve handling SPI dependency.
|
||||
- update examples
|
||||
|
||||
----
|
||||
|
||||
## [0.2.0] - 2023-12-01
|
||||
- refactor constructor interface - breaking changes.
|
||||
- minimize conditional code. -- create SPI_CLASS macro to solve it.
|
||||
|
@ -2,7 +2,7 @@
|
||||
// FILE: DAC8550.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: Arduino library for DAC8550 SPI Digital Analog Convertor
|
||||
// VERSION: 0.2.0
|
||||
// VERSION: 0.3.0
|
||||
// DATE: 2021-02-04
|
||||
// URL: https://github.com/RobTillaart/DAC8550
|
||||
|
||||
@ -41,9 +41,9 @@ void DAC8550::begin()
|
||||
|
||||
if(_hwSPI)
|
||||
{
|
||||
_mySPI->end();
|
||||
_mySPI->begin();
|
||||
delay(1);
|
||||
// _mySPI->end();
|
||||
// _mySPI->begin();
|
||||
// delay(1);
|
||||
}
|
||||
else // SOFTWARE SPI
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
// FILE: DAC8550.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: Arduino library for DAC8550 SPI Digital Analog Convertor
|
||||
// VERSION: 0.2.0
|
||||
// VERSION: 0.3.0
|
||||
// DATE: 2021-02-04
|
||||
// URL: https://github.com/RobTillaart/DAC8550
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
#include "SPI.h"
|
||||
|
||||
|
||||
#define DAC8550_LIB_VERSION (F("0.2.0"))
|
||||
#define DAC8550_LIB_VERSION (F("0.3.0"))
|
||||
|
||||
|
||||
#define DAC8550_POWERDOWN_NORMAL 0
|
||||
|
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021-2023 Rob Tillaart
|
||||
Copyright (c) 2021-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
|
||||
|
@ -22,6 +22,13 @@ The DAC8550 is a SPI based 16 bit DAC with one channel.
|
||||
It is derived from the DAC8551 library.
|
||||
|
||||
|
||||
#### 0.3.0 Breaking change
|
||||
|
||||
Version 0.3.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.2.0 Breaking change
|
||||
|
||||
The version 0.2.0 has breaking changes in the interface.
|
||||
|
@ -18,6 +18,8 @@ void setup()
|
||||
Serial.print("DAC8550_LIB_VERSION: ");
|
||||
Serial.println(DAC8550_LIB_VERSION);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
myDAC.begin();
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,8 @@ void setup()
|
||||
Serial.print("DAC8550_LIB_VERSION: ");
|
||||
Serial.println(DAC8550_LIB_VERSION);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
myDAC.begin();
|
||||
|
||||
myDAC.setValue(0);
|
||||
|
@ -22,6 +22,8 @@ void setup()
|
||||
Serial.print("DAC8550_LIB_VERSION: ");
|
||||
Serial.println(DAC8550_LIB_VERSION);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
myDAC.begin();
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
// FILE: demo_sw_spi.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: demo DAC855X library Arduino with software SPI
|
||||
// VERSION: 0.1.1
|
||||
// URL: https://github.com/RobTillaart/DAC8550
|
||||
|
||||
|
||||
@ -20,6 +19,8 @@ void setup()
|
||||
Serial.print("DAC8550_LIB_VERSION: ");
|
||||
Serial.println(DAC8550_LIB_VERSION);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
myDAC.begin();
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/DAC8550"
|
||||
},
|
||||
"version": "0.2.0",
|
||||
"version": "0.3.0",
|
||||
"frameworks": "*",
|
||||
"platforms": "*",
|
||||
"headers": "DAC8550.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=DAC8550
|
||||
version=0.2.0
|
||||
version=0.3.0
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for DAC8550 SPI DAC Digital Analog Convertor
|
||||
|
Loading…
x
Reference in New Issue
Block a user