Library for interfacing NXP PCA9632 4-channel, 8-bit PWM controller for LED
The PCA9632 is an I2C-bus controlled 4-bit LED driver optimized for Red/Green/Blue/Amber (RGBA) color mixing applications. -) I2C interface with communication speed up to 1 MHz (I2C Fast Mode Plus) -) Two hardware address pins allow up to 4 devices on the same bus (10-pin package option only) -) 256 steps (8-bit PWM) of individual PWM (e.g. LED brightness) control
typical I2C clock speed to be used (400kHz, I2C Fast-Mode)
Available I2C addresses
Available Mode1 options
Auto-Increment options (Mode1 Register, bit 5-7)
Available Mode2 options
Available LEDOUT options for LEDx (Value | Access | Description)
Initializes I2C communication with the PCA9632.
It simply copies the I2C port, I2C address to the transferred empty device handle.
Activates/Deactivates the PCA9685 by clearing/setting the "SLEEP" bit in the "MODE1" register
Reads the contents of mode register 1 from the PCA9632.
Sets the mode register 1 of the PCA9632.
Reads the contents of mode register 2 from the PCA9632.
Sets the mode register 2 of the PCA9632.
Sets the LED output state register.
Sets the LED output state register.
Sets the individual brightness control registers for a specific LED of the PCA9632.
Sets the group duty cycle control register of the PCA9632.
Sets the group frequency register of the PCA9632.
absolute maximum I2C clock speed (1MHz, I2C Fast-Mode Plus)
I2C bus addresses that provide special functionality
Available I2C registers of the PCA9632 (Address | Default | Description)
Reads the contents of a register from the PCA9632
Writes the transferred data into the desired register of the PCA9632
Performs a reset of the PCA9632 using the "Software Reset Call" command through the I2C-bus, identical to the Power-On Reset (POR) that initializes the registers to their default state causing the outputs to be set high-impedance.