Skip to content

Commit

Permalink
docs(pcnt): add pullup and pulldown documentation
Browse files Browse the repository at this point in the history
Closes #14277
  • Loading branch information
Kainarx committed Nov 19, 2024
1 parent 43b0d10 commit 4ace614
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/en/api-reference/peripherals/pcnt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ If a previously created PCNT channel is no longer needed, it is recommended to r
pcnt_channel_handle_t pcnt_chan = NULL;
ESP_ERROR_CHECK(pcnt_new_channel(pcnt_unit, &chan_config, &pcnt_chan));
.. note::

In PCNT, the GPIOs involved can be reconfigured for pull-up or pull-down after initializing PCNT using functions such as :cpp:func:`gpio_pullup_en` and :cpp:func:`gpio_pullup_dis`.

.. _pcnt-setup-channel-actions:

Set Up Channel Actions
Expand Down
4 changes: 4 additions & 0 deletions docs/zh_CN/api-reference/peripherals/pcnt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ PCNT 单元和通道分别用 :cpp:type:`pcnt_unit_handle_t` 与 :cpp:type:`pcnt
pcnt_channel_handle_t pcnt_chan = NULL;
ESP_ERROR_CHECK(pcnt_new_channel(pcnt_unit, &chan_config, &pcnt_chan));
.. note::

PCNT 中涉及到的 GPIO 都可以在初始化完 PCNT 后, 通过 :cpp:func:`gpio_pullup_en` 和 :cpp:func:`gpio_pullup_dis` 等函数,重新进行上下拉等配置。

.. _pcnt-setup-channel-actions:

设置通道操作
Expand Down

0 comments on commit 4ace614

Please sign in to comment.