mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-09-19 16:46:11 -04:00
0.2.5 DAC8554
This commit is contained in:
parent
bb018852dc
commit
d0d747c264
@ -1,3 +1,18 @@
|
||||
platforms:
|
||||
rpipico:
|
||||
board: rp2040:rp2040:rpipico
|
||||
package: rp2040:rp2040
|
||||
gcc:
|
||||
features:
|
||||
defines:
|
||||
- ARDUINO_ARCH_RP2040
|
||||
warnings:
|
||||
flags:
|
||||
|
||||
packages:
|
||||
rp2040:rp2040:
|
||||
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
|
||||
|
||||
compile:
|
||||
# Choosing to run compilation tests on 2 different Arduino platforms
|
||||
platforms:
|
||||
@ -9,3 +24,5 @@ compile:
|
||||
- esp32
|
||||
# - esp8266
|
||||
# - mega2560
|
||||
- rpipico
|
||||
|
||||
|
51
libraries/DAC8554/CHANGELOG.md
Normal file
51
libraries/DAC8554/CHANGELOG.md
Normal file
@ -0,0 +1,51 @@
|
||||
# Change Log DAC8554
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.2.5] - 2022-10-31
|
||||
- add changelog.md
|
||||
- add rp2040 to build-CI
|
||||
|
||||
|
||||
## [0.2.4] - 2021-12-15
|
||||
- update library.json
|
||||
- update license
|
||||
- update unit test
|
||||
- minor edits
|
||||
|
||||
## [0.2.3] - 2021-08-29
|
||||
- add support for HSPI / VSPI ESP32 ++
|
||||
|
||||
## [0.2.2] - 2021-06-02
|
||||
- compile ESP32
|
||||
|
||||
## [0.2.1] - 2021-01-10
|
||||
- fix slave select hardware SPI
|
||||
- add getValue()
|
||||
- add getPowerDownMode().
|
||||
- fix unit test.
|
||||
|
||||
## [0.2.0] - 2020-12-18
|
||||
- add Arduino-CI + unit test
|
||||
|
||||
----
|
||||
|
||||
## [0.1.4] - 2020-07-20
|
||||
- fix URL's in demo's
|
||||
- add MIT license
|
||||
- minor edits
|
||||
|
||||
## [0.1.3] - 2020-06-07
|
||||
- fix library.json
|
||||
|
||||
## [0.1.2] - 2020-04-06
|
||||
- minor refactor
|
||||
- update readme.md
|
||||
|
||||
## [0.1.0] - 2017-12-19
|
||||
- initial version
|
||||
|
@ -5,17 +5,7 @@
|
||||
// VERSION: 0.2.4
|
||||
// URL: https://github.com/RobTillaart/DAC8554
|
||||
//
|
||||
// HISTORY:
|
||||
// 0.1.0: 2017-12-19 initial version
|
||||
// 0.1.2 2020-04-06 minor refactor, readme.md
|
||||
// 0.1.3 2020-06-07 fix library.json
|
||||
// 0.1.4 2020-07-20 fix URL's in demo's; MIT license; minor edits
|
||||
// 0.2.0 2020-12-18 add Arduino-CI + unit test
|
||||
// 0.2.1 2021-01-10 fix slave select hardware SPI + getValue() + getPowerDownMode().
|
||||
// fix unit test.
|
||||
// 0.2.2 2021-06-02 compile ESP32
|
||||
// 0.2.3 2021-08-29 add support for HSPI / VSPI ESP32 ++
|
||||
// 0.2.4 2021-12-15 update library.json, license, unit test, minor edits
|
||||
// HISTORY: see changelog.md
|
||||
|
||||
|
||||
#include "DAC8554.h"
|
||||
|
@ -3,7 +3,7 @@
|
||||
// FILE: DAC8554.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: Arduino library for DAC8554 SPI Digital Analog Convertor
|
||||
// VERSION: 0.2.4
|
||||
// VERSION: 0.2.5
|
||||
// HISTORY: See DAC8554.cpp
|
||||
// URL: https://github.com/RobTillaart/DAC8554
|
||||
//
|
||||
@ -11,7 +11,7 @@
|
||||
#include "Arduino.h"
|
||||
#include "SPI.h"
|
||||
|
||||
#define DAC8554_LIB_VERSION (F("0.2.4"))
|
||||
#define DAC8554_LIB_VERSION (F("0.2.5"))
|
||||
|
||||
#define DAC8554_POWERDOWN_NORMAL 0x00
|
||||
#define DAC8554_POWERDOWN_1K 0x40
|
||||
@ -34,7 +34,7 @@ public:
|
||||
void bufferValue(uint8_t channel, uint16_t value);
|
||||
void setValue(uint8_t channel, uint16_t value);
|
||||
uint16_t getValue(uint8_t channel);
|
||||
//writes the value to the channel but does not affect buffered ones
|
||||
// writes the value to the channel but does not affect buffered ones
|
||||
void setSingleValue(uint8_t channel, uint16_t value);
|
||||
|
||||
|
||||
@ -81,7 +81,7 @@ private:
|
||||
bool _hwSPI = false;
|
||||
uint8_t _address;
|
||||
|
||||
uint16_t _value[4]; // holdes last written / buffered value per channel
|
||||
uint16_t _value[4]; // holds last written / buffered value per channel
|
||||
uint8_t _register[4]; // holds powerDownMode per channel
|
||||
|
||||
uint32_t _SPIspeed = 16000000;
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/DAC8554"
|
||||
},
|
||||
"version": "0.2.4",
|
||||
"version": "0.2.5",
|
||||
"license": "MIT",
|
||||
"frameworks": "arduino",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=DAC8554
|
||||
version=0.2.4
|
||||
version=0.2.5
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for DAC8554 SPI Digital Analog Convertor
|
||||
|
Loading…
Reference in New Issue
Block a user