<?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[Enabling IRda on Serial 2]]></title><description><![CDATA[<p dir="auto">I'm trying to enable IRda TX and RX in the configuration for my M5core in Arduino. I saw in the documentation that this is possible: <a href="https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/uart.html#api-reference" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/uart.html#api-reference</a></p>
<p dir="auto">However, I don't know what library functions in Arduino I need to call to enable this.</p>
<p dir="auto">Here's my code so far:</p>
<p dir="auto">#include &lt;M5Stack.h&gt;</p>
<p dir="auto">void setup() {</p>
<p dir="auto">M5.begin();</p>
<p dir="auto">Serial.begin(115200);</p>
<p dir="auto">// Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)<br />
Serial2.begin(115200, SERIAL_8N1, 22, 21,0);<br />
}</p>
<p dir="auto">Any pointers on how to enable IRda tx and rx would be much appreciated! OR please show me where to look for the right configuration keyboard/syntax!</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://community.m5stack.com/topic/565/enabling-irda-on-serial-2</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Mar 2026 23:13:50 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/565.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Feb 2019 07:20:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Enabling IRda on Serial 2 on Mon, 20 Jan 2020 17:12:53 GMT]]></title><description><![CDATA[<p dir="auto">Does anyone know how to 'redirect' the UART on Pin 17 for sending to Pin 9. This since the IR-Led on the M5StickC and others within the M5-Family is build connected to Pin 9. It would be interesting to have that light use the irDA protocol, since it is already available inside it.</p>
]]></description><link>https://community.m5stack.com/post/7136</link><guid isPermaLink="true">https://community.m5stack.com/post/7136</guid><dc:creator><![CDATA[bigjim991]]></dc:creator><pubDate>Mon, 20 Jan 2020 17:12:53 GMT</pubDate></item><item><title><![CDATA[Reply to Enabling IRda on Serial 2 on Mon, 20 Jan 2020 16:59:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/481">@m5-docs</a> The link should be <a href="https://esp32.com/viewtopic.php?t=2766" target="_blank" rel="noopener noreferrer nofollow ugc">https://esp32.com/viewtopic.php?t=2766</a><br />
(add one 6 to the end)</p>
]]></description><link>https://community.m5stack.com/post/7135</link><guid isPermaLink="true">https://community.m5stack.com/post/7135</guid><dc:creator><![CDATA[bigjim991]]></dc:creator><pubDate>Mon, 20 Jan 2020 16:59:31 GMT</pubDate></item><item><title><![CDATA[Reply to Enabling IRda on Serial 2 on Tue, 12 Feb 2019 04:02:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1114">@quangan</a><br />
Hi Maybe you can refer to this article.</p>
<p dir="auto"><a href="https://www.esp32.com/viewtopic.php?t=276" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.esp32.com/viewtopic.php?t=276</a></p>
<pre><code>/* IRda transmitter */

//HardwareSerial Serial1(1);
HardwareSerial Serial2(2); // GPIO 17: TXD U2  +  GPIO 16: RXD U2

void setup() {
    Serial.begin (115200); // (USB + TX/RX) to check
    Serial2.begin(115200); // GPIO 17: TXD U2  +  GPIO 16: RXD U2

    //UART_CONF0_REG  Configuration register 0
    //UART0: 0x3FF40020
    //UART1: 0x3FF50020
    //UART2: 0x3FF6E020

    WRITE_PERI_REG( 0x3FF6E020 , READ_PERI_REG(0x3FF6E020) | (1&lt;&lt;16 ) | (1&lt;&lt;10 ) );  //UART_IRDA_EN + UART_IRDA_TX_EN  "Let there be light"
    //Serial.print("Reg: "); Serial.println(READ_PERI_REG(0x3FF6E020),BIN);  //For Debug only
}//setup

void loop() {
    Serial.println("Hello");
    Serial2.println("Hello");
    delay(1000);
} //loop
</code></pre>
]]></description><link>https://community.m5stack.com/post/2913</link><guid isPermaLink="true">https://community.m5stack.com/post/2913</guid><dc:creator><![CDATA[m5-docs]]></dc:creator><pubDate>Tue, 12 Feb 2019 04:02:26 GMT</pubDate></item></channel></rss>