fix initialization (autoincrement)

This commit is contained in:
rob tillaart 2016-04-24 19:21:50 +02:00
parent d5306a3464
commit c57a9fefee
2 changed files with 4 additions and 2 deletions

View File

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

View File

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