0.5.0 PCA9685_RT

This commit is contained in:
Rob Tillaart 2023-07-17 10:50:46 +02:00
parent f4ee382025
commit 7bbb60f49b
7 changed files with 14 additions and 11 deletions

View File

@ -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.5.0] - 2023-07-16
- fix #21, remove PCA9685_MODE2_BLINK
- is breaking (for some)
----
## [0.4.2] - 2023-03-14
- add OutputEnable control functions.
- add example **PCA9685_OE_control.ino**

View File

@ -2,7 +2,7 @@
// FILE: PCA9685.cpp
// AUTHOR: Rob Tillaart
// DATE: 24-apr-2016
// VERSION: 0.4.2
// VERSION: 0.5.0
// PURPOSE: Arduino library for I2C PCA9685 16 channel PWM
// URL: https://github.com/RobTillaart/PCA9685_RT

View File

@ -3,7 +3,7 @@
// FILE: PCA9685.h
// AUTHOR: Rob Tillaart
// DATE: 24-apr-2016
// VERSION: 0.4.2
// VERSION: 0.5.0
// PURPOSE: Arduino library for I2C PCA9685 16 channel PWM
// URL: https://github.com/RobTillaart/PCA9685_RT
@ -12,7 +12,7 @@
#include "Wire.h"
#define PCA9685_LIB_VERSION (F("0.4.2"))
#define PCA9685_LIB_VERSION (F("0.5.0"))
// ERROR CODES
#define PCA9685_OK 0x00
@ -42,7 +42,6 @@
#define PCA9685_MODE1_NONE 0x00
// Configuration bits MODE2 register
#define PCA9685_MODE2_BLINK 0x20 // 0 = dim 1 = blink
#define PCA9685_MODE2_INVERT 0x10 // 0 = normal 1 = inverted
#define PCA9685_MODE2_ACK 0x08 // 0 = on STOP 1 = on ACK
#define PCA9685_MODE2_TOTEMPOLE 0x04 // 0 = open drain 1 = totem-pole

View File

@ -76,7 +76,6 @@ useful to add or remove a single flag (bit masking).
| PCA9685_MODE1_ALLCALL | 0x01 | 0 = disable 1 = enable |
| PCA9685_MODE1_NONE | 0x00 | |
| | | |
| PCA9685_MODE2_BLINK | 0x20 | 0 = dim 1 = blink |
| PCA9685_MODE2_INVERT | 0x10 | 0 = normal 1 = inverted |
| PCA9685_MODE2_STOP | 0x08 | 0 = on STOP 1 = on ACK |
| PCA9685_MODE2_TOTEMPOLE | 0x04 | 0 = open drain 1 = totem-pole |
@ -87,16 +86,16 @@ These constants makes it easier to set modes without using a non descriptive
bit mask. The constants can be merged by OR-ing them together, see snippet:
```cpp
ledArray.writeMode(PCA9685_MODE2, 0b00110100);
ledArray.writeMode(PCA9685_MODE2, 0b00010100);
// would become
uint8_t mode2_mask = PCA9685_MODE2_BLINK | PCA9685_MODE2_INVERT | PCA9685_MODE2_TOTEMPOLE;
uint8_t mode2_mask = PCA9685_MODE2_INVERT | PCA9685_MODE2_TOTEMPOLE;
ledArray.writeMode(PCA9685_MODE2, mode2_mask);
// or even
ledArray.setMode2(PCA9685_MODE2_BLINK | PCA9685_MODE2_INVERT | PCA9685_MODE2_TOTEMPOLE);
ledArray.setMode2(PCA9685_MODE2_INVERT | PCA9685_MODE2_TOTEMPOLE);
```

View File

@ -65,7 +65,6 @@ PCA9685_MODE1_SUB3 LITERAL1
PCA9685_MODE1_ALLCALL LITERAL1
PCA9685_MODE1_NONE LITERAL1
PCA9685_MODE2_BLINK LITERAL1
PCA9685_MODE2_INVERT LITERAL1
PCA9685_MODE2_ACK LITERAL1
PCA9685_MODE2_TOTEMPOLE LITERAL1

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/PCA9685_RT.git"
},
"version": "0.4.2",
"version": "0.5.0",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=PCA9685_RT
version=0.4.2
version=0.5.0
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for I2C PCA9685 16 channel PWM