Loading...
Searching...
No Matches

PCA9685 device initialization parameters. More...

Detailed Description

PCA9685 device initialization parameters.

Definition at line 178 of file pca9685.h.

#include <pca9685.h>

Data Fields

i2c_t i2c_dev
 I2C device, default I2C_DEV(0)
 
uint8_t i2c_addr
 I2C slave address.
 
pwm_mode_t mode
 PWM mode for all channels: PWM_LEFT, PWM_CENTER, PWM_RIGHT supported, (default PWM_CENTER)
 
uint32_t freq
 PWM frequency in Hz (default 100)
 
uint16_t res
 PWM resolution (default 4096)
 
bool inv
 Invert outputs, e.g., for LEDs (default yes)
 
uint32_t ext_freq
 If not 0, EXTCLK pin is used with this frequency.
 
gpio_t oe_pin
 Active LOW output enable pin /OE.
 
pca9685_out_drv_t out_drv
 Output driver mode.
 
pca9685_out_ne_t out_ne
 Output-not-enabled mode.
 

Field Documentation

◆ ext_freq

uint32_t pca9685_params_t::ext_freq

If not 0, EXTCLK pin is used with this frequency.

Definition at line 190 of file pca9685.h.

◆ freq

uint32_t pca9685_params_t::freq

PWM frequency in Hz (default 100)

Definition at line 185 of file pca9685.h.

◆ i2c_addr

uint8_t pca9685_params_t::i2c_addr

I2C slave address.

Definition at line 181 of file pca9685.h.

◆ i2c_dev

i2c_t pca9685_params_t::i2c_dev

I2C device, default I2C_DEV(0)

Definition at line 180 of file pca9685.h.

◆ inv

bool pca9685_params_t::inv

Invert outputs, e.g., for LEDs (default yes)

Definition at line 188 of file pca9685.h.

◆ mode

pwm_mode_t pca9685_params_t::mode

PWM mode for all channels: PWM_LEFT, PWM_CENTER, PWM_RIGHT supported, (default PWM_CENTER)

Definition at line 183 of file pca9685.h.

◆ oe_pin

gpio_t pca9685_params_t::oe_pin

Active LOW output enable pin /OE.

If GPIO_UNDEF, the pin is not used. (default GPIO_UNDEF).

Definition at line 191 of file pca9685.h.

◆ out_drv

pca9685_out_drv_t pca9685_params_t::out_drv

Output driver mode.

Definition at line 193 of file pca9685.h.

◆ out_ne

pca9685_out_ne_t pca9685_params_t::out_ne

Output-not-enabled mode.

Definition at line 194 of file pca9685.h.

◆ res

uint16_t pca9685_params_t::res

PWM resolution (default 4096)

Definition at line 186 of file pca9685.h.


The documentation for this struct was generated from the following file: