<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[esp32.RMT constructor example is not accepting the tx_carrier parameter]]></title><description><![CDATA[<p dir="auto">Look at the example code here <a href="https://docs.micropython.org/en/latest/library/esp32.html?highlight=rmt" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.micropython.org/en/latest/library/esp32.html?highlight=rmt</a></p>
<p dir="auto">Specifically the line</p>
<pre><code>r = esp32.RMT(0, pin=Pin(18), clock_div=8, tx_carrier=(38000, 50, 1))
</code></pre>
<p dir="auto">it throws an exception</p>
<pre><code>TypeError: extra keyword arguments given
</code></pre>
<p dir="auto">removing the parameter tx_carrier will stop the exception, but I need it to have a 38KHz carrier frequency, that's the whole point of the IR LED</p>
<p dir="auto">How do I make the m5stick send out pulses with a 38KHz carrier frequency?</p>
<p dir="auto">Thanks</p>
<p dir="auto">PS yes I know it's pin 9 on m5stick</p>
<p dir="auto">PS I would say what micropython version I'm running but it's reporting as "798485f45-dirty"</p>
]]></description><link>https://community.m5stack.com/topic/4347/esp32-rmt-constructor-example-is-not-accepting-the-tx_carrier-parameter</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Mar 2026 13:21:17 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4347.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Jun 2022 06:50:31 GMT</pubDate><ttl>60</ttl></channel></rss>