19#ifndef PCA9685_KCONFIG_HPP
20#define PCA9685_KCONFIG_HPP
23#if __has_include("sdkconfig.h")
30#ifndef CONFIG_PCA9685_PWM_FREQUENCY_HZ
32#define CONFIG_PCA9685_PWM_FREQUENCY_HZ 200
34#ifndef CONFIG_PCA9685_OSCILLATOR_HZ
36#define CONFIG_PCA9685_OSCILLATOR_HZ 25000000
49#if defined(CONFIG_PCA9685_EXTERNAL_CLOCK) && CONFIG_PCA9685_EXTERNAL_CLOCK
52#if defined(CONFIG_PCA9685_OPEN_DRAIN) && CONFIG_PCA9685_OPEN_DRAIN
55#if defined(CONFIG_PCA9685_INVERT_OUTPUTS) && CONFIG_PCA9685_INVERT_OUTPUTS
56 c.invert_outputs =
true;
@ External
The EXTCLK pin, DC to 50 MHz; sticky until a power cycle or software reset.
@ OpenDrain
Sink only. Needed for LEDs with integrated Zener diodes (section 10, Q5).
The PCA9685 driver: everything it declares lives here; internals in detail.
Definition pca9685.hpp:30
constexpr Config KconfigDefaults() noexcept
The configuration menuconfig selected, on top of the reset values.
Definition pca9685_kconfig.hpp:45
#define CONFIG_PCA9685_OSCILLATOR_HZ
Definition pca9685_kconfig.hpp:36
#define CONFIG_PCA9685_PWM_FREQUENCY_HZ
Definition pca9685_kconfig.hpp:32
Public types of the PCA9685 driver: errors, Result<T>, channel values, configuration,...
Everything EnsureInitialized() writes to the chip.
Definition pca9685_types.hpp:377
uint32_t pwm_frequency_hz
Definition pca9685_types.hpp:378