mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
docs: Update the application examples in pcnt.rst
This commit is contained in:
parent
56816c1ff4
commit
9733a89c18
@ -383,7 +383,7 @@ Kconfig Options
|
||||
Application Examples
|
||||
--------------------
|
||||
|
||||
* Decode the quadrature signals from rotary encoder: :example:`peripherals/pcnt/rotary_encoder`.
|
||||
* :example:`peripherals/pcnt/rotary_encoder` demonstrates how to use the PCNT peripheral to decode the differential signals generated from a common rotary encoder, EC11, and how to configure the rotary encoder to wake the system from light-sleep.
|
||||
|
||||
|
||||
API Reference
|
||||
|
@ -380,10 +380,10 @@ Konfig 选项 :ref:`CONFIG_PCNT_ISR_IRAM_SAFE` 可以实现以下功能:
|
||||
- :ref:`CONFIG_PCNT_ISR_IRAM_SAFE` 用于控制当缓存禁用时,默认的 ISR 句柄是否可以工作,请参考 :ref:`pcnt-iram-safe` 获取更多信息。
|
||||
- :ref:`CONFIG_PCNT_ENABLE_DEBUG_LOG` 用于使能调试日志输出,而这会增大固件二进制文件。
|
||||
|
||||
应用实例
|
||||
应用示例
|
||||
------------
|
||||
|
||||
* 对旋转编码器的正交信号进行解码的实例请参考::example:`peripherals/pcnt/rotary_encoder`。
|
||||
* :example:`peripherals/pcnt/rotary_encoder` 演示了如何使用 PCNT 外设来解码由常见的旋转编码器 EC11 生成的差分信号,以及如何配置旋转编码器将系统从 light-sleep 状态唤醒。
|
||||
|
||||
|
||||
API 参考
|
||||
|
Loading…
Reference in New Issue
Block a user