0.2.9 PCA9634

This commit is contained in:
Rob Tillaart 2023-09-24 14:23:03 +02:00
parent 4ed0b678f6
commit 5083582908
6 changed files with 48 additions and 31 deletions

View File

@ -6,13 +6,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/). and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.2.8] - 2023-09-24
- add Wire1 support for ESP32
- update readme.md
## [0.2.8] - 2023-05-24 ## [0.2.8] - 2023-05-24
- renaming #defines PCA963X... to prepare merge with PCA9634. - renaming #defines PCA963X... to prepare merge with PCA9634.
- old defines will work until next major release - old defines will work until next major release
- update keywords.txt - update keywords.txt
- update readme.md - update readme.md
## [0.2.7] - 2023-05-01 ## [0.2.7] - 2023-05-01
- add **writeLedOut(reg, mask)** experimental - add **writeLedOut(reg, mask)** experimental
- add **readLedOut(reg)** experimental - add **readLedOut(reg)** experimental

View File

@ -2,7 +2,7 @@
// FILE: PCA9634.cpp // FILE: PCA9634.cpp
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// DATE: 2022-01-03 // DATE: 2022-01-03
// VERSION: 0.2.8 // VERSION: 0.2.9
// PURPOSE: Arduino library for PCA9634 I2C LED driver // PURPOSE: Arduino library for PCA9634 I2C LED driver
// URL: https://github.com/RobTillaart/PCA9634 // URL: https://github.com/RobTillaart/PCA9634
@ -27,7 +27,6 @@ PCA9634::PCA9634(const uint8_t deviceAddress, TwoWire *wire)
#if defined (ESP8266) || defined(ESP32) #if defined (ESP8266) || defined(ESP32)
bool PCA9634::begin(int sda, int scl, uint8_t mode1_mask, uint8_t mode2_mask) bool PCA9634::begin(int sda, int scl, uint8_t mode1_mask, uint8_t mode2_mask)
{ {
_wire = &Wire;
if ((sda < 255) && (scl < 255)) if ((sda < 255) && (scl < 255))
{ {
_wire->begin(sda, scl); _wire->begin(sda, scl);

View File

@ -3,7 +3,7 @@
// FILE: PCA9634.h // FILE: PCA9634.h
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// DATE: 2022-01-03 // DATE: 2022-01-03
// VERSION: 0.2.8 // VERSION: 0.2.9
// PURPOSE: Arduino library for PCA9634 I2C LED driver, 8 channel // PURPOSE: Arduino library for PCA9634 I2C LED driver, 8 channel
// URL: https://github.com/RobTillaart/PCA9634 // URL: https://github.com/RobTillaart/PCA9634
@ -12,7 +12,7 @@
#include "Wire.h" #include "Wire.h"
#define PCA9634_LIB_VERSION (F("0.2.8")) #define PCA9634_LIB_VERSION (F("0.2.9"))
// mode codes // mode codes
@ -163,6 +163,7 @@ public:
uint8_t setLedDriverMode(uint8_t channel, uint8_t mode); uint8_t setLedDriverMode(uint8_t channel, uint8_t mode);
uint8_t getLedDriverMode(uint8_t channel); uint8_t getLedDriverMode(uint8_t channel);
// reg = 1, 2 check datasheet for values // reg = 1, 2 check datasheet for values
uint8_t writeMode(uint8_t reg, uint8_t value); uint8_t writeMode(uint8_t reg, uint8_t value);
uint8_t readMode(uint8_t reg); uint8_t readMode(uint8_t reg);
@ -172,9 +173,11 @@ public:
uint8_t getMode1(); uint8_t getMode1();
uint8_t getMode2(); uint8_t getMode2();
void setGroupPWM(uint8_t value); void setGroupPWM(uint8_t value);
uint8_t getGroupPWM(); uint8_t getGroupPWM();
void setGroupFREQ(uint8_t value); void setGroupFREQ(uint8_t value);
uint8_t getGroupFREQ(); uint8_t getGroupFREQ();

View File

@ -2,8 +2,11 @@
[![Arduino CI](https://github.com/RobTillaart/PCA9634/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci) [![Arduino CI](https://github.com/RobTillaart/PCA9634/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
[![Arduino-lint](https://github.com/RobTillaart/PCA9634/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/PCA9634/actions/workflows/arduino-lint.yml) [![Arduino-lint](https://github.com/RobTillaart/PCA9634/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/PCA9634/actions/workflows/arduino-lint.yml)
[![JSON check](https://github.com/RobTillaart/PCA9634/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/PCA9634/actions/workflows/jsoncheck.yml) [![JSON check](https://github.com/RobTillaart/PCA9634/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/PCA9634/actions/workflows/jsoncheck.yml)
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/PCA9634.svg)](https://github.com/RobTillaart/PCA9634/issues)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/PCA9634/blob/master/LICENSE) [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/PCA9634/blob/master/LICENSE)
[![GitHub release](https://img.shields.io/github/release/RobTillaart/PCA9634.svg?maxAge=3600)](https://github.com/RobTillaart/PCA9634/releases) [![GitHub release](https://img.shields.io/github/release/RobTillaart/PCA9634.svg?maxAge=3600)](https://github.com/RobTillaart/PCA9634/releases)
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/PCA9634.svg)](https://registry.platformio.org/libraries/robtillaart/PCA9634)
# PCA9634 # PCA9634
@ -256,7 +259,6 @@ please give feedback, so the documentation can be improved.
For further details of the development, see - #10 (comment) For further details of the development, see - #10 (comment)
#### LEDOUT #### LEDOUT
Experimental, needs testing, read datasheet 7.3.6 Experimental, needs testing, read datasheet 7.3.6
@ -357,3 +359,12 @@ when all previously send commands since the last STOP command will be executed.
- **setGroupPWM()** - **setGroupPWM()**
- PWM also in %% ? (trivial for user) - PWM also in %% ? (trivial for user)
## 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,9 +15,9 @@
"type": "git", "type": "git",
"url": "https://github.com/RobTillaart/PCA9634.git" "url": "https://github.com/RobTillaart/PCA9634.git"
}, },
"version": "0.2.8", "version": "0.2.9",
"license": "MIT", "license": "MIT",
"frameworks": "arduino", "frameworks": "*",
"platforms": "*", "platforms": "*",
"headers": "PCA9634.h" "headers": "PCA9634.h"
} }

View File

@ -1,5 +1,5 @@
name=PCA9634 name=PCA9634
version=0.2.8 version=0.2.9
author=Rob Tillaart <rob.tillaart@gmail.com> author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com> maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for PCA9634 I2C LED driver 8 channel sentence=Arduino library for PCA9634 I2C LED driver 8 channel