0.1.2 PT2314

This commit is contained in:
Rob Tillaart 2023-09-24 17:31:03 +02:00
parent 8aee2732a8
commit d6a25f1b67
6 changed files with 32 additions and 16 deletions

View File

@ -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.

View File

@ -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 --

View File

@ -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

View File

@ -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,

View File

@ -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": "*",

View File

@ -1,10 +1,10 @@
name=PT2314
version=0.1.1
version=0.1.2
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
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