← index #16573Issue #6967
Related · high · value 3.092
QUERY · ISSUE

docs: ESP32 C3 and C6 has only 2 Timers (0 and 2)

openby dmoibmopened 2025-01-12updated 2025-02-20
port-esp32

Documentation URL

https://docs.micropython.org/en/latest/esp32/quickref.html#timers

Description

A note for ESP32 C3 and C6 would be helpful. These only have two timers, Timer(0) and Timer(2)

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

esp32: Virtual timers not currently supported in doc

closedby jejopened 2021-02-26updated 2021-03-04

According to this page: http://docs.micropython.org/en/latest/esp32/quickref.html#timers virtual timers are not supported.
But it seems to work in real life with a -1 timer.
Is it a problem of documentation update?

from machine import Timer

t = Timer(-1)
t.init(period=1000, mode=Timer.PERIODIC, callback=lambda t:print("Working"))

while True:
    pass
Working
Working
Working
...

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied