This commit is contained in:
2025-12-07 12:52:00 +03:00
parent 1a8f4711e8
commit 62bb100561

View File

@@ -17,6 +17,7 @@ TaskHandle_t zh_pcf8574 = NULL;
static SemaphoreHandle_t _interrupt_semaphore = NULL;
static uint8_t _interrupt_gpio = GPIO_NUM_MAX;
static uint8_t _expander_counter = 0;
static const uint8_t _gpio_matrix[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
static bool _is_prev_gpio_isr_service = false;
@@ -73,6 +74,7 @@ esp_err_t zh_pcf8574_init(const zh_pcf8574_init_config_t *config, zh_pcf8574_han
}
}
handle->is_initialized = true;
++_expander_counter;
ZH_LOGI("PCF8574 initialization completed successfully.");
return ESP_OK;
}