The previous implementation only set the MODE1 register to 0x00, which is not the default of the PCA9685 (bit 0, ALLCALL, defaults to 1 - see section 7.3.1 in the datasheet) and ignores all other register like MODE2, all output values, etc. The PCA9685 offers a dedicated software reset, which "allows all the devices in the I2C-bus to be reset to the power-up state" (section 7.6).
The previous implementation only set the
MODE1
register to0x00
, which is not the default of the PCA9685 (bit 0,ALLCALL
, defaults to 1 - see section 7.3.1 in the datasheet) and ignores all other register likeMODE2
, all output values, etc. The PCA9685 offers a dedicated software reset, which "allows all the devices in the I2C-bus to be reset to the power-up state" (section 7.6).