<?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[IR(NEC) address [] data [] what are the expected values?]]></title><description><![CDATA[<p dir="auto">I have some IR codes I would like to transmit via M5StickC (appreciate M5StickC is transmit only)<br />
0x00F720DF = Red<br />
0x00F7A05F = Green<br />
0x00F7609F = Blue<br />
And more in format like <a href="https://tasmota.github.io/docs/Codes-for-IR-Remotes/#ir-codes-tv-lg-55uh8509" target="_blank" rel="noopener noreferrer nofollow ugc">https://tasmota.github.io/docs/Codes-for-IR-Remotes/#ir-codes-tv-lg-55uh8509</a><br />
I am assuming these are the data values to go in the UIFlow block.</p>
<p dir="auto">The documentation: <a href="https://docs.m5stack.com/en/mpy/hardwares/ir" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/mpy/hardwares/ir</a> is not clear and could do with an example.</p>
<p dir="auto">I've tried the <a href="https://flow.m5stack.com/?examples=ir_nec_sender_demo" target="_blank" rel="noopener noreferrer nofollow ugc">https://flow.m5stack.com/?examples=ir_nec_sender_demo</a> example with the above codes in data and the below codes for address<br />
0x10 = 16-bit (from NEC docs the address half the full datagram length)<br />
0x01 = 8-bit (the address length itself)<br />
0x08 = the inverse of the inverse bits (inverse of F7)</p>
<p dir="auto">I've taken the codes above to be 32 bit. I've tried in run and download modes then tested still no luck.</p>
<p dir="auto">I'm aware of the following instruction, but I really think it should be possible from UIFlow for this simple set.<br />
<a href="https://github.com/Sarah-C/M5Stack_Atom_IRSendLEDLightDemo/tree/main" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Sarah-C/M5Stack_Atom_IRSendLEDLightDemo/tree/main</a></p>
<p dir="auto">I have tested and confirmed IR is on (webcam test). Any help please, I would like to do without Arduino because I think it should, well, just work.</p>
]]></description><link>https://community.m5stack.com/topic/5460/ir-nec-address-data-what-are-the-expected-values</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 19:36:02 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5460.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Jul 2023 08:33:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IR(NEC) address [] data [] what are the expected values? on Tue, 09 Jan 2024 17:14:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi I tried many times with the IR unit and uiflow, I think the uiflow can do nothing with IR unit.</p>
<p dir="auto">What I get is the IR unit can only receive what it send out, you can write some very simple python codes to validate this, if you have connected the controller with serial,</p>
<pre><code class="language-python">ir_0 = unit.get(unit.IR_NEC, unit.PORTA)
ir_0.rx_cb(lambda d,a,c: print("recv:",d,a,c))

# same with ir.tx(123,456)
ir_0.tx(123,456)
</code></pre>
<p dir="auto">You should get the output something like that, "recv: 255 123 0", you can try to hide the transmitter or receiver light for a while if you don't get the "recv", and try another times.</p>
<p dir="auto">I think the implementation for rx_cb is quiet simple and it can not be used for parse the output of any remotes, I'm trying to learn something Arduino or the .Net, don't touch uiflow any more.</p>
]]></description><link>https://community.m5stack.com/post/23284</link><guid isPermaLink="true">https://community.m5stack.com/post/23284</guid><dc:creator><![CDATA[dawncold]]></dc:creator><pubDate>Tue, 09 Jan 2024 17:14:00 GMT</pubDate></item></channel></rss>