mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
fix initialization (autoincrement)
This commit is contained in:
parent
d5306a3464
commit
c57a9fefee
@ -2,11 +2,12 @@
|
||||
// FILE: PCA9635.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// DATE: 23-apr-2016
|
||||
// VERSION: 0.1.00
|
||||
// VERSION: 0.1.01
|
||||
// PURPOSE: I2C PCA9635 library for Arduino
|
||||
// URL:
|
||||
//
|
||||
// HISTORY:
|
||||
// 0.1.01 set autoincr in constructor
|
||||
// 0.1.00 initial BETA version
|
||||
//
|
||||
|
||||
@ -21,6 +22,7 @@ PCA9635::PCA9635(const uint8_t deviceAddress)
|
||||
// TWBR = 12; // 400KHz
|
||||
_data = 0;
|
||||
_error = 0;
|
||||
writeReg(PCA9685_MODE1, 0x81); // AUTOINCR | NOSLEEP | ALLADRR
|
||||
}
|
||||
|
||||
// write value to single PWM registers
|
||||
|
@ -2,7 +2,7 @@
|
||||
// FILE: PCA9635.H
|
||||
// AUTHOR: Rob Tillaart
|
||||
// DATE: 23-apr-2016
|
||||
// VERSION: 0.1.00
|
||||
// VERSION: 0.1.01
|
||||
// PURPOSE: I2C PCA9635 library for Arduino
|
||||
// URL: https://github.com/RobTillaart/Arduino/tree/master/libraries
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user