From 5cc184a25e6a4876e09a5b1339e930bfad0549aa Mon Sep 17 00:00:00 2001 From: shenmengjing Date: Tue, 9 Jul 2024 16:57:09 +0800 Subject: [PATCH] docs: Update the application examples in cap_touch_sens.rst --- docs/en/api-reference/peripherals/cap_touch_sens.rst | 6 ++---- docs/zh_CN/api-reference/peripherals/cap_touch_sens.rst | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/en/api-reference/peripherals/cap_touch_sens.rst b/docs/en/api-reference/peripherals/cap_touch_sens.rst index 42a72b0f42..0b08103dbd 100644 --- a/docs/en/api-reference/peripherals/cap_touch_sens.rst +++ b/docs/en/api-reference/peripherals/cap_touch_sens.rst @@ -447,12 +447,10 @@ Call :cpp:func:`touch_channel_read_data` to read the data with different types. Application Examples ------------------------ -.. only:: esp32p4 - - - Touch sensor basic example: :example:`peripherals/touch_sensor/touch_sensor_{IDF_TARGET_TOUCH_SENSOR_VERSION}`. + - :example:`peripherals/touch_sensor/touch_sensor_v3` demonstrates how to register touch channels and read the data, including hardware requirements and project configuration instructions. API Reference ---------------- +------------- .. only:: esp32p4 diff --git a/docs/zh_CN/api-reference/peripherals/cap_touch_sens.rst b/docs/zh_CN/api-reference/peripherals/cap_touch_sens.rst index b4e2f4f06d..794c4e67c6 100644 --- a/docs/zh_CN/api-reference/peripherals/cap_touch_sens.rst +++ b/docs/zh_CN/api-reference/peripherals/cap_touch_sens.rst @@ -445,11 +445,9 @@ ESP_ERROR_CHECK(touch_sensor_config_sleep_wakeup(sens_handle, &deep_slp_cfg)); 应用示例 ----------- +-------- -.. only:: esp32p4 - - - 触摸传感器基础例程: :example:`peripherals/touch_sensor/touch_sensor_{IDF_TARGET_TOUCH_SENSOR_VERSION}`. + - :example:`peripherals/touch_sensor/touch_sensor_v3` 演示了如何注册触摸通道并读取数据,并说明了硬件要求及项目配置。 API 参考 ----------