From d6a25f1b67c2934f0ad828ab6867018c876560b3 Mon Sep 17 00:00:00 2001 From: Rob Tillaart Date: Sun, 24 Sep 2023 17:31:03 +0200 Subject: [PATCH] 0.1.2 PT2314 --- libraries/PT2314/CHANGELOG.md | 8 ++++++-- libraries/PT2314/PT2314.cpp | 9 ++++----- libraries/PT2314/PT2314.h | 10 +++++----- libraries/PT2314/README.md | 15 ++++++++++++++- libraries/PT2314/library.json | 2 +- libraries/PT2314/library.properties | 4 ++-- 6 files changed, 32 insertions(+), 16 deletions(-) diff --git a/libraries/PT2314/CHANGELOG.md b/libraries/PT2314/CHANGELOG.md index cc4ff613..b02ec9a1 100644 --- a/libraries/PT2314/CHANGELOG.md +++ b/libraries/PT2314/CHANGELOG.md @@ -6,12 +6,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [0.1.1] - 2023- +## [0.1.2] - 2023-09-24 +- add Wire1 support for ESP32 +- update readme.md + + +## [0.1.1] - 2023-08-01 - add **PT7313** derived class - 3 input 2 output version - update readme.md - ## [0.1.0] - 2023-07-30 - initial version. diff --git a/libraries/PT2314/PT2314.cpp b/libraries/PT2314/PT2314.cpp index 124947ca..6197add4 100644 --- a/libraries/PT2314/PT2314.cpp +++ b/libraries/PT2314/PT2314.cpp @@ -2,13 +2,14 @@ // FILE: PT2314.cpp // AUTHOR: Rob Tillaart // DATE: 2023-07-30 -// VERSION: 0.1.1 +// VERSION: 0.1.2 // PURPOSE: Arduino library for PT2314 i2C 4 channel audio processor. // URL: https://github.com/RobTillaart/PT2314 #include "PT2314.h" + PT2314::PT2314(TwoWire *wire) { _wire = wire; @@ -18,7 +19,6 @@ PT2314::PT2314(TwoWire *wire) #if defined (ESP8266) || defined(ESP32) bool PT2314::begin(int dataPin, int clockPin) { - _wire = &Wire; if ((dataPin < 255) && (clockPin < 255)) { _wire->begin(dataPin, clockPin); @@ -276,8 +276,8 @@ void PT7313::setChannel(uint8_t channel) _channel = channel; updateAudioRegister(); } - - + + void PT7313::setAttnLeftBack(uint8_t value) { setAttnLeft(value); @@ -329,7 +329,6 @@ uint8_t PT7313::getAttnRightFront() return _attnRightFront; } - // -- END OF FILE -- diff --git a/libraries/PT2314/PT2314.h b/libraries/PT2314/PT2314.h index 6a0ad875..682bfd49 100644 --- a/libraries/PT2314/PT2314.h +++ b/libraries/PT2314/PT2314.h @@ -3,7 +3,7 @@ // FILE: PT2314.h // AUTHOR: Rob Tillaart // DATE: 2023-07-30 -// VERSION: 0.1.1 +// VERSION: 0.1.2 // PURPOSE: Arduino library for PT2314 i2C 4 channel audio processor. // URL: https://github.com/RobTillaart/PT2314 @@ -12,7 +12,7 @@ #include "Wire.h" -#define PT2314_LIB_VERSION (F("0.1.1")) +#define PT2314_LIB_VERSION (F("0.1.2")) class PT2314 @@ -41,7 +41,7 @@ public: int8_t getBass(); void setTreble(int8_t treble = 0); // -14..14 int8_t getTreble(); - + void setGain(uint8_t gain = 0); // 0..3 uint8_t getGain(); @@ -88,10 +88,10 @@ class PT7313 : public PT2314 { public: PT7313(TwoWire *wire = &Wire); - + void setMute(bool on); void setChannel(uint8_t channel = 0); // 0..2 - + void setAttnLeftBack(uint8_t value = 31); // 0..31 uint8_t getAttnLeftBack(); void setAttnRightBack(uint8_t value = 31); // 0..31 diff --git a/libraries/PT2314/README.md b/libraries/PT2314/README.md index ff38f4aa..5bd0d6b5 100644 --- a/libraries/PT2314/README.md +++ b/libraries/PT2314/README.md @@ -1,15 +1,19 @@ [![Arduino CI](https://github.com/RobTillaart/PT2314/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci) -[![JSON check](https://github.com/RobTillaart/PT2314/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/PT2314/actions/workflows/jsoncheck.yml) [![Arduino-lint](https://github.com/RobTillaart/PT2314/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/PT2314/actions/workflows/arduino-lint.yml) +[![JSON check](https://github.com/RobTillaart/PT2314/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/PT2314/actions/workflows/jsoncheck.yml) +[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/PT2314.svg)](https://github.com/RobTillaart/PT2314/issues) + [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/PT2314/blob/master/LICENSE) [![GitHub release](https://img.shields.io/github/release/RobTillaart/PT2314.svg?maxAge=3600)](https://github.com/RobTillaart/PT2314/releases) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/PT2314.svg)](https://registry.platformio.org/libraries/robtillaart/PT2314) # PT2314 Arduino library for PT2314 i2C 4 channel audio processor. + ## Description The PT2314 library is experimental as it is not tested with hardware. @@ -164,3 +168,12 @@ Additional attenuation: #### Wont (unless on request) + +## Support + +If you appreciate my libraries, you can support the development and maintenance. +Improve the quality of the libraries by providing issues and Pull Requests, or +donate through PayPal or GitHub sponsors. + +Thank you, + diff --git a/libraries/PT2314/library.json b/libraries/PT2314/library.json index af1d49da..82c7ad9b 100644 --- a/libraries/PT2314/library.json +++ b/libraries/PT2314/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/PT2314.git" }, - "version": "0.1.1", + "version": "0.1.2", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/libraries/PT2314/library.properties b/libraries/PT2314/library.properties index 18c5e363..bcbf78f5 100644 --- a/libraries/PT2314/library.properties +++ b/libraries/PT2314/library.properties @@ -1,10 +1,10 @@ name=PT2314 -version=0.1.1 +version=0.1.2 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for PT2314 i2C 4 channel audio processor, paragraph=PT7314, PT7313 -category=Sensors +category=Other url=https://github.com/RobTillaart/PT2314 architectures=* includes=PT2314.h