<?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[Example code for IR signal?]]></title><description><![CDATA[<p dir="auto">Curious if anyone has an example of the array containing an IR power on/off signal, I've been trying to replicate the function of a remote that is broken but I'm struggling to build the signal properly.</p>
]]></description><link>https://community.flic.io/topic/18433/example-code-for-ir-signal</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 07:39:20 GMT</lastBuildDate><atom:link href="https://community.flic.io/topic/18433.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Mar 2024 18:27:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Example code for IR signal? on Fri, 28 Jun 2024 13:10:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/5092">@jakekapsandy</a> here is an example:</p>
<pre><code class="language-javascript">var ir = require('ir');

var arr = [48256, 7029, 3405, 418, 445, 418, 445, 418, 445, 421, 445, 421, 448, 418, 445, 421, 445, 416, 445, 421, 445, 418, 445, 418, 445, 418, 445, 424, 1293, 418, 1296, 416, 448, 418, 445, 426, 445, 424, 1296, 421, 445, 416, 445, 421, 445, 424, 445, 418, 445, 421, 445, 418, 1293, 424, 445, 421, 1293, 416, 1293, 418, 1293, 424, 1293, 421, 1293, 418, 1293, 421, 34946, 7053, 1709, 421];

ir.play(new Uint32Array(arr), function(error) {
	console.log(error);
});
</code></pre>
]]></description><link>https://community.flic.io/post/21437</link><guid isPermaLink="true">https://community.flic.io/post/21437</guid><dc:creator><![CDATA[Emil]]></dc:creator><pubDate>Fri, 28 Jun 2024 13:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to Example code for IR signal? on Thu, 04 Apr 2024 18:23:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/57">@Emil</a> No I was just looking for an example of the array mentioned here.</p>
]]></description><link>https://community.flic.io/post/21311</link><guid isPermaLink="true">https://community.flic.io/post/21311</guid><dc:creator><![CDATA[jakekapsandy]]></dc:creator><pubDate>Thu, 04 Apr 2024 18:23:57 GMT</pubDate></item><item><title><![CDATA[Reply to Example code for IR signal? on Sat, 30 Mar 2024 17:43:22 GMT]]></title><description><![CDATA[<p dir="auto">The documentation says the following:</p>
<blockquote>
<p dir="auto">The first element of the array should contain a carrier frequency in Hz (usually 38000 Hz). The following elements indicate in microseconds how long each pulse should be active or silent, alternating. The first of these represents how long time the IR LEDs are on, the second how long they are off, the third how long time on and so on. The last one must represent an on part. Therefore the length of the array must be even. If another play is started before a previous one has completed, it gets enqueued and starts as soon as the previous completes (max 100 enqueued signals). If the IR is currently recording, the play is also enqueued.</p>
</blockquote>
<p dir="auto">Is anything here unclear that needs more detailed explanation?</p>
]]></description><link>https://community.flic.io/post/21303</link><guid isPermaLink="true">https://community.flic.io/post/21303</guid><dc:creator><![CDATA[Emil]]></dc:creator><pubDate>Sat, 30 Mar 2024 17:43:22 GMT</pubDate></item></channel></rss>