fix: unsupported of various chips

This commit is contained in:
aZholtikov committed 2026-05-01 23:44:13 +03:00
1 parent 2bd892e013
commit 73a2b00c2a
3 files changed
+10 -2

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@
## Features
1. Support up to 4 touch pads on one device.
1. Support up to 4 touch pads on one device (depends on the used ESP32 chip).
2. Support 8 or 16 pad work mode.
## Note
+1 -1
View File
@@ -1 +1 @@
1.0.0
1.0.1
+8
View File
@@ -163,7 +163,11 @@ static esp_err_t _zh_ttp229_rmt_init(const zh_ttp229_init_config_t *config, zh_t
rmt_tx_channel_config_t tx_chan_config = {
.clk_src = RMT_CLK_SRC_DEFAULT,
.gpio_num = config->scl_gpio,
#if defined CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
.mem_block_symbols = 64,
#else
.mem_block_symbols = 48,
#endif
.resolution_hz = 1000000,
.trans_queue_depth = 4,
.flags.init_level = 1,
@@ -178,7 +182,11 @@ static esp_err_t _zh_ttp229_rmt_init(const zh_ttp229_init_config_t *config, zh_t
rmt_rx_channel_config_t rx_chan_config = {
.clk_src = RMT_CLK_SRC_DEFAULT,
.gpio_num = config->sdo_gpio,
#if defined CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
.mem_block_symbols = 64,
#else
.mem_block_symbols = 48,
#endif
.resolution_hz = 1000000,
};
ZH_ERROR_CHECK(rmt_new_rx_channel(&rx_chan_config, &handle->rx_channel) == ESP_OK, ESP_FAIL,