QUERY · ISSUE
ESP32 Pulse Counter Driver
port-esp32
Add a driver for ESP32 Pulse Counter Hardware.
Related to: #5214
CANDIDATE · ISSUE
RMT.loop doesn't work for ESP32-S3
bug
Running this code on the ESP32 vs ESP32-S3 gives different results (pin changed for ESP32-S3).
import esp32
from machine import Pin
r = esp32.RMT(0, pin=Pin(2), clock_div=255)
r.loop(1)
r.write_pulses((32767, 32767))
On the ESP32 it will continue to loop as expected, on the S3 it will just write the pulses one time.
Hardware ESP32: ESP32 DEVKIT V1
Hardware ESP32S3: LuatOS ESP32-S3 running MicroPython v1.19.1-995-g0a3600a9a on 2023-03-31; ESP32S3 module (spiram octal) with ESP32S3