File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
// FILE: PCA9635.cpp
3
3
// AUTHOR: Rob Tillaart
4
4
// DATE: 23-apr-2016
5
- // VERSION: 0.1.00
5
+ // VERSION: 0.1.01
6
6
// PURPOSE: I2C PCA9635 library for Arduino
7
7
// URL:
8
8
//
9
9
// HISTORY:
10
+ // 0.1.01 set autoincr in constructor
10
11
// 0.1.00 initial BETA version
11
12
//
12
13
@@ -21,6 +22,7 @@ PCA9635::PCA9635(const uint8_t deviceAddress)
21
22
// TWBR = 12; // 400KHz
22
23
_data = 0 ;
23
24
_error = 0 ;
25
+ writeReg (PCA9685_MODE1, 0x81 ); // AUTOINCR | NOSLEEP | ALLADRR
24
26
}
25
27
26
28
// write value to single PWM registers
Original file line number Diff line number Diff line change 2
2
// FILE: PCA9635.H
3
3
// AUTHOR: Rob Tillaart
4
4
// DATE: 23-apr-2016
5
- // VERSION: 0.1.00
5
+ // VERSION: 0.1.01
6
6
// PURPOSE: I2C PCA9635 library for Arduino
7
7
// URL: https://github.com/RobTillaart/Arduino/tree/master/libraries
8
8
//
You can’t perform that action at this time.
0 commit comments