summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2025-01-12 12:16:26 +0100
committerDamien George <damien@micropython.org>2025-05-28 12:13:46 +1000
commit92c219afd6377b10579d7511242cbc747b79a026 (patch)
tree0a82b9c573fae50ea9af6d2728a7122dc08a6dfd
parent2f864416c6535cdf33a85ea0092e2415dc29dde3 (diff)
downloadmicropython-92c219afd6377b10579d7511242cbc747b79a026.tar.gz
micropython-92c219afd6377b10579d7511242cbc747b79a026.zip
docs/esp32/quickref: Mention the different timer counts.
Since the are ESP32 variants with 1, 2 or 4 hardware timers. Signed-off-by: robert-hh <robert@hammelrath.com>
-rw-r--r--docs/esp32/quickref.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst
index 4e70ff255e..c7d4a098e5 100644
--- a/docs/esp32/quickref.rst
+++ b/docs/esp32/quickref.rst
@@ -271,8 +271,10 @@ Use the :mod:`time <time>` module::
Timers
------
-The ESP32 port has four hardware timers. Use the :ref:`machine.Timer <machine.Timer>` class
-with a timer ID from 0 to 3 (inclusive)::
+The ESP32 port has one, two or four hardware timers, depending on the ESP32 device type.
+There is 1 timer for ESP32C2, 2 timers for ESP32C4, ESP32C6 and ESP32H4, and
+4 timers otherwise. Use the :ref:`machine.Timer <machine.Timer>` class
+with a timer ID of 0, 0 and 1, or from 0 to 3 (inclusive)::
from machine import Timer