first commit of GPIO expander

This commit is contained in:
Philippe G
2021-11-29 19:24:52 -08:00
parent 016bc1bb4d
commit 507c2c9755
11 changed files with 569 additions and 61 deletions

View File

@@ -100,6 +100,10 @@ void services_init(void) {
ESP_LOGW(TAG, "no SPI configured");
}
// create GPIO expander
const gpio_exp_config_t * gpio_exp_config = config_gpio_exp_get();
if (gpio_exp_config) gpio_exp_create(gpio_exp_config);
// system-wide PWM timer configuration
ledc_timer_config_t pwm_timer = {
.duty_resolution = LEDC_TIMER_13_BIT,