<?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[Env III  Hat defectuous ?]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I just bougth a M5StickCPlus and a ENV III hat. It's my first contact with M5Stack.<br />
I downloaded the code sample here<br />
<a href="https://github.com/m5stack/M5Unit-ENV/blob/master/examples/Unit_ENVIII_M5StickCPlus/Unit_ENVIII_M5StickCPlus.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Unit-ENV/blob/master/examples/Unit_ENVIII_M5StickCPlus/Unit_ENVIII_M5StickCPlus.ino</a><br />
No problem to compile neither to run, but it always returns 0.<br />
So I tried to change some parameters, especially in this line:<br />
Wire.begin(32,   33);<br />
I tried with Wire.begin(0,26); and Wire.begin();<br />
But always the same problem.<br />
Could the module be defectuous ?<br />
Thank's for your help</p>
]]></description><link>https://community.m5stack.com/topic/4697/env-iii-hat-defectuous</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 23:25:46 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4697.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Oct 2022 08:26:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Env III  Hat defectuous ? on Tue, 11 Oct 2022 19:05:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jhashe" aria-label="Profile: jhashe">@<bdi>jhashe</bdi></a></p>
<p dir="auto">you are very welcome. An thank you for reporting back. I am glad to hear you got it working to your liking.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18934</link><guid isPermaLink="true">https://community.m5stack.com/post/18934</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 11 Oct 2022 19:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to Env III  Hat defectuous ? on Tue, 11 Oct 2022 19:28:20 GMT]]></title><description><![CDATA[<p dir="auto">Wow, amazing !<br />
I just added the 2 lines you suggested in the setup function of the program (no need to modify the library) and it works.</p>
<p dir="auto">Wire.end();<br />
Wire.begin(0, 26);</p>
<p dir="auto">A great thanks for your rapid and effective help</p>
]]></description><link>https://community.m5stack.com/post/18933</link><guid isPermaLink="true">https://community.m5stack.com/post/18933</guid><dc:creator><![CDATA[jhashe]]></dc:creator><pubDate>Tue, 11 Oct 2022 19:28:20 GMT</pubDate></item><item><title><![CDATA[Reply to Env III  Hat defectuous ? on Tue, 11 Oct 2022 10:56:17 GMT]]></title><description><![CDATA[<p dir="auto">Thank’s you<br />
I can’t try today, but will make a feedback…positive I hope :-)<br />
Jérôme<br />
(Ps: and thanks you very much Felix)</p>
]]></description><link>https://community.m5stack.com/post/18931</link><guid isPermaLink="true">https://community.m5stack.com/post/18931</guid><dc:creator><![CDATA[jhashe]]></dc:creator><pubDate>Tue, 11 Oct 2022 10:56:17 GMT</pubDate></item><item><title><![CDATA[Reply to Env III  Hat defectuous ? on Tue, 11 Oct 2022 10:36:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jhashe" aria-label="Profile: jhashe">@<bdi>jhashe</bdi></a></p>
<p dir="auto">using the Unit-Env library is fine - no need to uninstall it. What I suggest is for you to modify the file inside the library.</p>
<p dir="auto">As an alternative to modifying the library you could try to first end I2C with the incorrect GPIOs and then re-start it again with the correct GPIOs in <code>setup()</code> like this:</p>
<pre><code>Wire.end();
Wire.begin(0, 26);
</code></pre>
<p dir="auto">Note: both solutions are untested as I do not have the ENVIII hat (or unit).</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18930</link><guid isPermaLink="true">https://community.m5stack.com/post/18930</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 11 Oct 2022 10:36:24 GMT</pubDate></item><item><title><![CDATA[Reply to Env III  Hat defectuous ? on Tue, 11 Oct 2022 10:25:25 GMT]]></title><description><![CDATA[<p dir="auto">Hello Felmue<br />
Thank’s for your answer.<br />
Sorry for this newbie question, but I didn’t integrate the source code but used then Unit-Env library,<br />
So do I should create the .h and .cpp files for all sources (width the update you propose) and it will replace the default library ?<br />
Or maybe it would be better to uninstall it first ?</p>
]]></description><link>https://community.m5stack.com/post/18929</link><guid isPermaLink="true">https://community.m5stack.com/post/18929</guid><dc:creator><![CDATA[jhashe]]></dc:creator><pubDate>Tue, 11 Oct 2022 10:25:25 GMT</pubDate></item><item><title><![CDATA[Reply to Env III  Hat defectuous ? on Tue, 11 Oct 2022 09:47:42 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jhashe" aria-label="Profile: jhashe">@<bdi>jhashe</bdi></a></p>
<p dir="auto"><code>Wire.begin(0, 26)</code> in <code>setup()</code> should be correct.</p>
<p dir="auto">However there is an additional <code>Wire.begin()</code> inside <code>M5Unit-ENV/src/SHT3X.cpp</code> which gets called first and most likely is the issue. I suggest you try to comment that one out.</p>
<p dir="auto">BTW: In the past that would not have been an issue as the last call to <code>Wire.begin()</code> would have won. But some recent changes in the ESP Arduino framework no longer allow this. In other words the second call to <code>Wire.begin()</code> simply gets ignored now.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18928</link><guid isPermaLink="true">https://community.m5stack.com/post/18928</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 11 Oct 2022 09:47:42 GMT</pubDate></item></channel></rss>