← index #16588PR #6118
Related · medium · value 0.570
QUERY · ISSUE

RMT frequency other than 80 MHz?

openby 0wwafaopened 2025-01-15updated 2025-03-03
enhancementport-esp32

Description

In the documentation I read that the frequency for the RMT function is fixed at 80 Mhz.
Any chance you could add also the other frequencies available?

Code Size

The additional code size should be very tiny.

Implementation

I hope the MicroPython maintainers or community will implement this feature

Code of Conduct

Yes, I agree

CANDIDATE · PULL REQUEST

extend carrier frequency into RMT class

closedby JonRob812opened 2020-06-07updated 2020-06-08

The esp32 has hardware for the carrier freq. This allows micropython to use it! envoke with
r = esp32.RMT(0, pin=Pin(2), clock_div=80, carrier_en=True, carrier_duty_percent=50, carrier_freq_hz=38000)

these three keyword args added carrier_en=True, carrier_duty_percent=50, carrier_freq_hz=38000

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