<?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[Change NCIR 2 from C to F]]></title><description><![CDATA[<p dir="auto">How would I go about changing the NCIR 2 unit to read from celsius to fahrenheit? Any help would be great</p>
]]></description><link>https://community.m5stack.com/topic/6946/change-ncir-2-from-c-to-f</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Mar 2026 05:22:13 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6946.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Nov 2024 19:09:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change NCIR 2 from C to F on Sat, 02 Nov 2024 21:12:22 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/178850">@reptilepvp</a></p>
<p dir="auto">just try something like below:</p>
<pre><code>label2.setText(str(((ncir2_0.get_temperature_value) * 9) / 5 + 32))
</code></pre>
<p dir="auto">Note: untested as I do not have the necessary hardware to verify.<br />
Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/26935</link><guid isPermaLink="true">https://community.m5stack.com/post/26935</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 02 Nov 2024 21:12:22 GMT</pubDate></item><item><title><![CDATA[Reply to Change NCIR 2 from C to F on Sat, 02 Nov 2024 13:59:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> I apologize for sounding stupid &amp; not doing my research. But could you possiblely show me where I need to put that in my code? I thought I put the formula in right. But I guess not .</p>
<p dir="auto">i2c0 = I2C(0, scl=Pin(1), sda=Pin(2), freq=100000)<br />
ncir2_0 = NCIR2Unit(i2c0, 0x5A)<br />
ncir2_0.set_buzzer_control(0)<br />
ncir2_0.set_rgb_led(0xcc33cc)<br />
ncir2_0.set_emissivity_value(0.95)</p>
<p dir="auto">def loop():<br />
global DopeMete, Battery, Temperature, label5, label0, line0, label1, line2, label2, line1, label3, label4, i2c0, ncir2_0<br />
M5.update()<br />
label2.setText(str("%.2f"%float((((ncir2_0.get_temperature_value) * 9) / 5 + 32))))<br />
label3.setText(str(ncir2_0.get_emissivity_value))<br />
label4.setText(str(ncir2_0.get_button_status))<br />
label5.setText(str(Power.getBatteryLevel()))</p>
]]></description><link>https://community.m5stack.com/post/26930</link><guid isPermaLink="true">https://community.m5stack.com/post/26930</guid><dc:creator><![CDATA[reptilepvp]]></dc:creator><pubDate>Sat, 02 Nov 2024 13:59:42 GMT</pubDate></item><item><title><![CDATA[Reply to Change NCIR 2 from C to F on Sat, 02 Nov 2024 09:43:17 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/178850">@reptilepvp</a></p>
<p dir="auto">according to its <a href="https://docs.m5stack.com/en/unit/NCIR2?id=related%20link" target="_blank" rel="noopener noreferrer nofollow ugc">datasheet</a> the used sensor MLX90614 is Celsius only.</p>
<p dir="auto">That said, there is a quite simple formula to convert Celsius into Fahrenheit. Have you tied that?</p>
<p dir="auto">(0 °C × 9/5) + 32 = 32 °F</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/26925</link><guid isPermaLink="true">https://community.m5stack.com/post/26925</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 02 Nov 2024 09:43:17 GMT</pubDate></item></channel></rss>