![]() |
LibDriver PCA9685
1.0.0
PCA9685 full-featured driver
|
pca9685 base driver modules More...
Data Structures | |
struct | pca9685_handle_s |
pca9685 handle structure definition More... | |
struct | pca9685_info_s |
pca9685 information structure definition More... | |
Macros | |
#define | PCA9685_OSCILLATOR_INTERNAL_FREQUENCY 25000000 |
pca9685 internal oscillator frequency More... | |
Typedefs | |
typedef struct pca9685_handle_s | pca9685_handle_t |
pca9685 handle structure definition More... | |
typedef struct pca9685_info_s | pca9685_info_t |
pca9685 information structure definition More... | |
Functions | |
uint8_t | pca9685_info (pca9685_info_t *info) |
get chip's information More... | |
uint8_t | pca9685_set_addr_pin (pca9685_handle_t *handle, pca9685_address_t addr_pin) |
set the address pin More... | |
uint8_t | pca9685_get_addr_pin (pca9685_handle_t *handle, pca9685_address_t *addr_pin) |
get the address pin More... | |
uint8_t | pca9685_set_addr (pca9685_handle_t *handle, uint8_t addr) |
set the address More... | |
uint8_t | pca9685_get_addr (pca9685_handle_t *handle, uint8_t *addr) |
get the address More... | |
uint8_t | pca9685_init (pca9685_handle_t *handle) |
initialize the chip More... | |
uint8_t | pca9685_deinit (pca9685_handle_t *handle) |
close the chip More... | |
uint8_t | pca9685_write_channel (pca9685_handle_t *handle, pca9685_channel_t channel, uint16_t on_count, uint16_t off_count) |
write led channels More... | |
uint8_t | pca9685_read_channel (pca9685_handle_t *handle, pca9685_channel_t channel, uint16_t *on_count, uint16_t *off_count) |
read led channels More... | |
uint8_t | pca9685_write_all_channel (pca9685_handle_t *handle, uint16_t on_count, uint16_t off_count) |
write all led channels More... | |
uint8_t | pca9685_pwm_convert_to_register (pca9685_handle_t *handle, float delay_percent, float high_duty_cycle_percent, uint16_t *on_count, uint16_t *off_count) |
convert the pwm to the register raw data More... | |
uint8_t | pca9685_pwm_convert_to_data (pca9685_handle_t *handle, uint16_t on_count, uint16_t off_count, float *delay_percent, float *high_duty_cycle_percent) |
convert the register raw data to the pwm More... | |
uint8_t | pca9685_set_active (pca9685_handle_t *handle, pca9685_bool_t enable) |
set the chip active More... | |
uint8_t | pca9685_set_prescaler (pca9685_handle_t *handle, uint8_t prescaler) |
set the clock pres cale More... | |
uint8_t | pca9685_get_prescaler (pca9685_handle_t *handle, uint8_t *prescaler) |
get the clock pre scale More... | |
uint8_t | pca9685_output_frequency_convert_to_register (pca9685_handle_t *handle, uint32_t oscillator, uint16_t output_freq, uint8_t *reg) |
convert the output frequency to the register raw data More... | |
uint8_t | pca9685_output_frequency_convert_to_data (pca9685_handle_t *handle, uint32_t oscillator, uint8_t reg, uint16_t *output_freq) |
convert the register raw data to the output frequency More... | |
uint8_t | pca9685_set_restart (pca9685_handle_t *handle, pca9685_bool_t enable) |
enable or disable restart More... | |
uint8_t | pca9685_get_restart (pca9685_handle_t *handle, pca9685_bool_t *enable) |
get the restart status More... | |
uint8_t | pca9685_set_external_clock_pin (pca9685_handle_t *handle, pca9685_bool_t enable) |
enable or disable the external clock pin More... | |
uint8_t | pca9685_get_external_clock_pin (pca9685_handle_t *handle, pca9685_bool_t *enable) |
get the external clock pin status More... | |
uint8_t | pca9685_set_register_auto_increment (pca9685_handle_t *handle, pca9685_bool_t enable) |
enable or disable the register auto increment More... | |
uint8_t | pca9685_get_register_auto_increment (pca9685_handle_t *handle, pca9685_bool_t *enable) |
get the register auto increment status More... | |
uint8_t | pca9685_set_sleep_mode (pca9685_handle_t *handle, pca9685_bool_t enable) |
enable or disable the sleep mode More... | |
uint8_t | pca9685_get_sleep_mode (pca9685_handle_t *handle, pca9685_bool_t *enable) |
get the sleep mode status More... | |
uint8_t | pca9685_set_respond_subaddress_1 (pca9685_handle_t *handle, pca9685_bool_t enable) |
enable or disable respond sub address 1 More... | |
uint8_t | pca9685_get_respond_subaddress_1 (pca9685_handle_t *handle, pca9685_bool_t *enable) |
get the respond sub address 1 status More... | |
uint8_t | pca9685_set_respond_subaddress_2 (pca9685_handle_t *handle, pca9685_bool_t enable) |
enable or disable respond sub address 2 More... | |
uint8_t | pca9685_get_respond_subaddress_2 (pca9685_handle_t *handle, pca9685_bool_t *enable) |
get the respond sub address 2 status More... | |
uint8_t | pca9685_set_respond_subaddress_3 (pca9685_handle_t *handle, pca9685_bool_t enable) |
enable or disable respond sub address 3 More... | |
uint8_t | pca9685_get_respond_subaddress_3 (pca9685_handle_t *handle, pca9685_bool_t *enable) |
get the respond sub address 3 status More... | |
uint8_t | pca9685_set_respond_all_call (pca9685_handle_t *handle, pca9685_bool_t enable) |
enable or disable respond all call More... | |
uint8_t | pca9685_get_respond_all_call (pca9685_handle_t *handle, pca9685_bool_t *enable) |
get the respond all call status More... | |
uint8_t | pca9685_set_output_invert (pca9685_handle_t *handle, pca9685_bool_t enable) |
enable or disable output invert More... | |
uint8_t | pca9685_get_output_invert (pca9685_handle_t *handle, pca9685_bool_t *enable) |
get the output invert status More... | |
uint8_t | pca9685_set_output_change (pca9685_handle_t *handle, pca9685_output_change_t change) |
set the output change type More... | |
uint8_t | pca9685_get_output_change (pca9685_handle_t *handle, pca9685_output_change_t *change) |
get the output change type More... | |
uint8_t | pca9685_set_output_driver (pca9685_handle_t *handle, pca9685_output_driver_t driver) |
set the output driver type More... | |
uint8_t | pca9685_get_output_driver (pca9685_handle_t *handle, pca9685_output_driver_t *driver) |
get the output driver type More... | |
uint8_t | pca9685_set_output_disable_type (pca9685_handle_t *handle, pca9685_output_disable_type_t type) |
set the output disable type More... | |
uint8_t | pca9685_get_output_disable_type (pca9685_handle_t *handle, pca9685_output_disable_type_t *type) |
get the output disable type More... | |
uint8_t | pca9685_set_subaddress_1 (pca9685_handle_t *handle, uint8_t addr) |
set the sub address 1 More... | |
uint8_t | pca9685_get_subaddress_1 (pca9685_handle_t *handle, uint8_t *addr) |
get the sub address 1 More... | |
uint8_t | pca9685_set_subaddress_2 (pca9685_handle_t *handle, uint8_t addr) |
set the sub address 2 More... | |
uint8_t | pca9685_get_subaddress_2 (pca9685_handle_t *handle, uint8_t *addr) |
get the sub address 2 More... | |
uint8_t | pca9685_set_subaddress_3 (pca9685_handle_t *handle, uint8_t addr) |
set the sub address 3 More... | |
uint8_t | pca9685_get_subaddress_3 (pca9685_handle_t *handle, uint8_t *addr) |
get the sub address 3 More... | |
uint8_t | pca9685_set_all_call_address (pca9685_handle_t *handle, uint8_t addr) |
set the all call address More... | |
uint8_t | pca9685_get_all_call_address (pca9685_handle_t *handle, uint8_t *addr) |
set the all call address More... | |
pca9685 base driver modules
#define PCA9685_OSCILLATOR_INTERNAL_FREQUENCY 25000000 |
typedef struct pca9685_handle_s pca9685_handle_t |
pca9685 handle structure definition
typedef struct pca9685_info_s pca9685_info_t |
pca9685 information structure definition
enum pca9685_address_t |
pca9685 address enumeration definition
Definition at line 69 of file driver_pca9685.h.
enum pca9685_bool_t |
pca9685 bool enumeration definition
Enumerator | |
---|---|
PCA9685_BOOL_FALSE | disable |
PCA9685_BOOL_TRUE | enable |
Definition at line 140 of file driver_pca9685.h.
enum pca9685_channel_t |
pca9685 channel enumeration definition
Definition at line 178 of file driver_pca9685.h.
pca9685 output change enumeration definition
Enumerator | |
---|---|
PCA9685_OUTPUT_CHANGE_STOP | outputs change on stop command |
PCA9685_OUTPUT_CHANGE_ACK | outputs change on ack |
Definition at line 149 of file driver_pca9685.h.
pca9685 output disable type enumeration definition
Definition at line 167 of file driver_pca9685.h.
pca9685 output driver enumeration definition
Enumerator | |
---|---|
PCA9685_OUTPUT_DRIVER_OPEN_DRAIN | outputs are configured with an open drain structure |
PCA9685_OUTPUT_DRIVER_TOTEM_POLE | outputs are configured with a totem pole structure |
Definition at line 158 of file driver_pca9685.h.
uint8_t pca9685_deinit | ( | pca9685_handle_t * | handle | ) |
close the chip
[in] | *handle | pointer to a pca9685 handle structure |
Definition at line 1935 of file driver_pca9685.c.
uint8_t pca9685_get_addr | ( | pca9685_handle_t * | handle, |
uint8_t * | addr | ||
) |
get the address
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *addr | pointer to a chip address buffer |
Definition at line 144 of file driver_pca9685.c.
uint8_t pca9685_get_addr_pin | ( | pca9685_handle_t * | handle, |
pca9685_address_t * | addr_pin | ||
) |
get the address pin
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *addr_pin | pointer to a chip address pins buffer |
Definition at line 102 of file driver_pca9685.c.
uint8_t pca9685_get_all_call_address | ( | pca9685_handle_t * | handle, |
uint8_t * | addr | ||
) |
set the all call address
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *addr | pointer to an all call address buffer |
Definition at line 1428 of file driver_pca9685.c.
uint8_t pca9685_get_external_clock_pin | ( | pca9685_handle_t * | handle, |
pca9685_bool_t * | enable | ||
) |
get the external clock pin status
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *enable | pointer to a bool value buffer |
Definition at line 326 of file driver_pca9685.c.
uint8_t pca9685_get_output_change | ( | pca9685_handle_t * | handle, |
pca9685_output_change_t * | change | ||
) |
get the output change type
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *change | pointer to an output change type buffer |
Definition at line 982 of file driver_pca9685.c.
uint8_t pca9685_get_output_disable_type | ( | pca9685_handle_t * | handle, |
pca9685_output_disable_type_t * | type | ||
) |
get the output disable type
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *type | pointer to an output disable type buffer |
Definition at line 1146 of file driver_pca9685.c.
uint8_t pca9685_get_output_driver | ( | pca9685_handle_t * | handle, |
pca9685_output_driver_t * | driver | ||
) |
get the output driver type
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *driver | pointer to an output driver type buffer |
Definition at line 1064 of file driver_pca9685.c.
uint8_t pca9685_get_output_invert | ( | pca9685_handle_t * | handle, |
pca9685_bool_t * | enable | ||
) |
get the output invert status
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *enable | pointer to a bool value buffer |
Definition at line 900 of file driver_pca9685.c.
uint8_t pca9685_get_prescaler | ( | pca9685_handle_t * | handle, |
uint8_t * | prescaler | ||
) |
get the clock pre scale
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *prescaler | pointer to a clock pre scale buffer |
Definition at line 1645 of file driver_pca9685.c.
uint8_t pca9685_get_register_auto_increment | ( | pca9685_handle_t * | handle, |
pca9685_bool_t * | enable | ||
) |
get the register auto increment status
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *enable | pointer to a bool value buffer |
Definition at line 408 of file driver_pca9685.c.
uint8_t pca9685_get_respond_all_call | ( | pca9685_handle_t * | handle, |
pca9685_bool_t * | enable | ||
) |
get the respond all call status
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *enable | pointer to a bool value buffer |
Definition at line 818 of file driver_pca9685.c.
uint8_t pca9685_get_respond_subaddress_1 | ( | pca9685_handle_t * | handle, |
pca9685_bool_t * | enable | ||
) |
get the respond sub address 1 status
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *enable | pointer to a bool value buffer |
Definition at line 572 of file driver_pca9685.c.
uint8_t pca9685_get_respond_subaddress_2 | ( | pca9685_handle_t * | handle, |
pca9685_bool_t * | enable | ||
) |
get the respond sub address 2 status
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *enable | pointer to a bool value buffer |
Definition at line 654 of file driver_pca9685.c.
uint8_t pca9685_get_respond_subaddress_3 | ( | pca9685_handle_t * | handle, |
pca9685_bool_t * | enable | ||
) |
get the respond sub address 3 status
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *enable | pointer to a bool value buffer |
Definition at line 736 of file driver_pca9685.c.
uint8_t pca9685_get_restart | ( | pca9685_handle_t * | handle, |
pca9685_bool_t * | enable | ||
) |
get the restart status
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *enable | pointer to a bool value buffer |
Definition at line 244 of file driver_pca9685.c.
uint8_t pca9685_get_sleep_mode | ( | pca9685_handle_t * | handle, |
pca9685_bool_t * | enable | ||
) |
get the sleep mode status
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *enable | pointer to a bool value buffer |
Definition at line 490 of file driver_pca9685.c.
uint8_t pca9685_get_subaddress_1 | ( | pca9685_handle_t * | handle, |
uint8_t * | addr | ||
) |
get the sub address 1
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *addr | pointer to a sub address 1 buffer |
Definition at line 1218 of file driver_pca9685.c.
uint8_t pca9685_get_subaddress_2 | ( | pca9685_handle_t * | handle, |
uint8_t * | addr | ||
) |
get the sub address 2
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *addr | pointer to a sub address 2 buffer |
Definition at line 1288 of file driver_pca9685.c.
uint8_t pca9685_get_subaddress_3 | ( | pca9685_handle_t * | handle, |
uint8_t * | addr | ||
) |
get the sub address 3
[in] | *handle | pointer to a pca9685 handle structure |
[out] | *addr | pointer to a sub address 3 buffer |
Definition at line 1358 of file driver_pca9685.c.
uint8_t pca9685_info | ( | pca9685_info_t * | info | ) |
get chip's information
[out] | *info | pointer to a pca9685 info structure |
Definition at line 2056 of file driver_pca9685.c.
uint8_t pca9685_init | ( | pca9685_handle_t * | handle | ) |
initialize the chip
[in] | *handle | pointer to a pca9685 handle structure |
Definition at line 1814 of file driver_pca9685.c.
uint8_t pca9685_output_frequency_convert_to_data | ( | pca9685_handle_t * | handle, |
uint32_t | oscillator, | ||
uint8_t | reg, | ||
uint16_t * | output_freq | ||
) |
convert the register raw data to the output frequency
[in] | *handle | pointer to a pca9685 handle structure |
[in] | oscillator | oscillator frequency |
[in] | reg | register raw data |
[out] | *output_freq | pointer to an output frequency buffer |
Definition at line 1709 of file driver_pca9685.c.
uint8_t pca9685_output_frequency_convert_to_register | ( | pca9685_handle_t * | handle, |
uint32_t | oscillator, | ||
uint16_t | output_freq, | ||
uint8_t * | reg | ||
) |
convert the output frequency to the register raw data
[in] | *handle | pointer to a pca9685 handle structure |
[in] | oscillator | oscillator frequency |
[in] | output_freq | output frequency |
[out] | *reg | pointer to a register raw buffer |
Definition at line 1681 of file driver_pca9685.c.
uint8_t pca9685_pwm_convert_to_data | ( | pca9685_handle_t * | handle, |
uint16_t | on_count, | ||
uint16_t | off_count, | ||
float * | delay_percent, | ||
float * | high_duty_cycle_percent | ||
) |
convert the register raw data to the pwm
[in] | *handle | pointer to a pca9685 handle structure |
[in] | on_count | led on count |
[in] | off_count | led off count |
[out] | *delay_percent | pointer to a delay percent buffer |
[out] | *high_duty_cycle_percent | pointer to a high duty cycle percent buffer |
Definition at line 1779 of file driver_pca9685.c.
uint8_t pca9685_pwm_convert_to_register | ( | pca9685_handle_t * | handle, |
float | delay_percent, | ||
float | high_duty_cycle_percent, | ||
uint16_t * | on_count, | ||
uint16_t * | off_count | ||
) |
convert the pwm to the register raw data
[in] | *handle | pointer to a pca9685 handle structure |
[in] | delay_percent | start delay percent |
[in] | high_duty_cycle_percent | pwm high duty cycle percent |
[out] | *on_count | pointer to an on counter buffer |
[out] | *off_count | pointer to an off counter buffer |
Definition at line 1741 of file driver_pca9685.c.
uint8_t pca9685_read_channel | ( | pca9685_handle_t * | handle, |
pca9685_channel_t | channel, | ||
uint16_t * | on_count, | ||
uint16_t * | off_count | ||
) |
read led channels
[in] | *handle | pointer to a pca9685 handle structure |
[in] | channel | led channel |
[out] | *on_count | pointer to an led on count buffer |
[out] | *off_count | pointer to an led off count buffer |
Definition at line 1515 of file driver_pca9685.c.
uint8_t pca9685_set_active | ( | pca9685_handle_t * | handle, |
pca9685_bool_t | enable | ||
) |
set the chip active
[in] | *handle | pointer to a pca9685 handle structure |
[in] | enable | bool value |
Definition at line 167 of file driver_pca9685.c.
uint8_t pca9685_set_addr | ( | pca9685_handle_t * | handle, |
uint8_t | addr | ||
) |
set the address
[in] | *handle | pointer to a pca9685 handle structure |
[in] | addr | chip address |
Definition at line 123 of file driver_pca9685.c.
uint8_t pca9685_set_addr_pin | ( | pca9685_handle_t * | handle, |
pca9685_address_t | addr_pin | ||
) |
set the address pin
[in] | *handle | pointer to a pca9685 handle structure |
[in] | addr_pin | chip address pins |
Definition at line 80 of file driver_pca9685.c.
uint8_t pca9685_set_all_call_address | ( | pca9685_handle_t * | handle, |
uint8_t | addr | ||
) |
set the all call address
[in] | *handle | pointer to a pca9685 handle structure |
[in] | addr | all call address |
Definition at line 1393 of file driver_pca9685.c.
uint8_t pca9685_set_external_clock_pin | ( | pca9685_handle_t * | handle, |
pca9685_bool_t | enable | ||
) |
enable or disable the external clock pin
[in] | *handle | pointer to a pca9685 handle structure |
[in] | enable | bool value |
Definition at line 281 of file driver_pca9685.c.
uint8_t pca9685_set_output_change | ( | pca9685_handle_t * | handle, |
pca9685_output_change_t | change | ||
) |
set the output change type
[in] | *handle | pointer to a pca9685 handle structure |
[in] | change | output change type |
Definition at line 937 of file driver_pca9685.c.
uint8_t pca9685_set_output_disable_type | ( | pca9685_handle_t * | handle, |
pca9685_output_disable_type_t | type | ||
) |
set the output disable type
[in] | *handle | pointer to a pca9685 handle structure |
[in] | type | output disable type |
Definition at line 1101 of file driver_pca9685.c.
uint8_t pca9685_set_output_driver | ( | pca9685_handle_t * | handle, |
pca9685_output_driver_t | driver | ||
) |
set the output driver type
[in] | *handle | pointer to a pca9685 handle structure |
[in] | driver | output driver type |
Definition at line 1019 of file driver_pca9685.c.
uint8_t pca9685_set_output_invert | ( | pca9685_handle_t * | handle, |
pca9685_bool_t | enable | ||
) |
enable or disable output invert
[in] | *handle | pointer to a pca9685 handle structure |
[in] | enable | bool value |
Definition at line 855 of file driver_pca9685.c.
uint8_t pca9685_set_prescaler | ( | pca9685_handle_t * | handle, |
uint8_t | prescaler | ||
) |
set the clock pres cale
[in] | *handle | pointer to a pca9685 handle structure |
[in] | prescaler | clock pre scale |
Definition at line 1604 of file driver_pca9685.c.
uint8_t pca9685_set_register_auto_increment | ( | pca9685_handle_t * | handle, |
pca9685_bool_t | enable | ||
) |
enable or disable the register auto increment
[in] | *handle | pointer to a pca9685 handle structure |
[in] | enable | bool value |
Definition at line 363 of file driver_pca9685.c.
uint8_t pca9685_set_respond_all_call | ( | pca9685_handle_t * | handle, |
pca9685_bool_t | enable | ||
) |
enable or disable respond all call
[in] | *handle | pointer to a pca9685 handle structure |
[in] | enable | bool value |
Definition at line 773 of file driver_pca9685.c.
uint8_t pca9685_set_respond_subaddress_1 | ( | pca9685_handle_t * | handle, |
pca9685_bool_t | enable | ||
) |
enable or disable respond sub address 1
[in] | *handle | pointer to a pca9685 handle structure |
[in] | enable | bool value |
Definition at line 527 of file driver_pca9685.c.
uint8_t pca9685_set_respond_subaddress_2 | ( | pca9685_handle_t * | handle, |
pca9685_bool_t | enable | ||
) |
enable or disable respond sub address 2
[in] | *handle | pointer to a pca9685 handle structure |
[in] | enable | bool value |
Definition at line 609 of file driver_pca9685.c.
uint8_t pca9685_set_respond_subaddress_3 | ( | pca9685_handle_t * | handle, |
pca9685_bool_t | enable | ||
) |
enable or disable respond sub address 3
[in] | *handle | pointer to a pca9685 handle structure |
[in] | enable | bool value |
Definition at line 691 of file driver_pca9685.c.
uint8_t pca9685_set_restart | ( | pca9685_handle_t * | handle, |
pca9685_bool_t | enable | ||
) |
enable or disable restart
[in] | *handle | pointer to a pca9685 handle structure |
[in] | enable | bool value |
Definition at line 199 of file driver_pca9685.c.
uint8_t pca9685_set_sleep_mode | ( | pca9685_handle_t * | handle, |
pca9685_bool_t | enable | ||
) |
enable or disable the sleep mode
[in] | *handle | pointer to a pca9685 handle structure |
[in] | enable | bool value |
Definition at line 445 of file driver_pca9685.c.
uint8_t pca9685_set_subaddress_1 | ( | pca9685_handle_t * | handle, |
uint8_t | addr | ||
) |
set the sub address 1
[in] | *handle | pointer to a pca9685 handle structure |
[in] | addr | sub address 1 |
Definition at line 1183 of file driver_pca9685.c.
uint8_t pca9685_set_subaddress_2 | ( | pca9685_handle_t * | handle, |
uint8_t | addr | ||
) |
set the sub address 2
[in] | *handle | pointer to a pca9685 handle structure |
[in] | addr | sub address 2 |
Definition at line 1253 of file driver_pca9685.c.
uint8_t pca9685_set_subaddress_3 | ( | pca9685_handle_t * | handle, |
uint8_t | addr | ||
) |
set the sub address 3
[in] | *handle | pointer to a pca9685 handle structure |
[in] | addr | sub address 3 |
Definition at line 1323 of file driver_pca9685.c.
uint8_t pca9685_write_all_channel | ( | pca9685_handle_t * | handle, |
uint16_t | on_count, | ||
uint16_t | off_count | ||
) |
write all led channels
[in] | *handle | pointer to a pca9685 handle structure |
[in] | on_count | led on count |
[in] | off_count | led off count |
Definition at line 1557 of file driver_pca9685.c.
uint8_t pca9685_write_channel | ( | pca9685_handle_t * | handle, |
pca9685_channel_t | channel, | ||
uint16_t | on_count, | ||
uint16_t | off_count | ||
) |
write led channels
[in] | *handle | pointer to a pca9685 handle structure |
[in] | channel | led channel |
[in] | on_count | led on count |
[in] | off_count | led off count |
Definition at line 1466 of file driver_pca9685.c.