<?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[[Solved]M5StickC I2C bus error]]></title><description><![CDATA[<p dir="auto">While using the M5StickC with the ENV "environment sensor" connected I receive the following error when running the ENV sample UICode program (<a href="https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ENV/UIFlo" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ENV/UIFlo</a>):</p>
<p dir="auto">&gt;&gt;&gt; env0 = units.ENV(units.PORTA)<br />
Traceback (most recent call last):<br />
File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br />
File "m5flow/units.py", line 83, in <strong>init</strong><br />
File "lib/bmp280.py", line 147, in <strong>init</strong><br />
OSError: I2C bus error (6)</p>
<p dir="auto">I tried a second ENV sensor and received the same error.    Any suggestions would be appreciated.</p>
]]></description><link>https://community.m5stack.com/topic/897/solved-m5stickc-i2c-bus-error</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 07:08:17 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/897.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Apr 2019 01:38:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved]M5StickC I2C bus error on Thu, 18 Apr 2019 03:13:29 GMT]]></title><description><![CDATA[<p dir="auto">StickC grove IIC not 21, 22,  it`s 32, 33</p>
]]></description><link>https://community.m5stack.com/post/3821</link><guid isPermaLink="true">https://community.m5stack.com/post/3821</guid><dc:creator><![CDATA[heybin]]></dc:creator><pubDate>Thu, 18 Apr 2019 03:13:29 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]M5StickC I2C bus error on Thu, 18 Apr 2019 03:11:45 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1555556974985-dc7406be-8ad0-4191-821c-9002af3328ed-image.png" alt="0_1555556974669_dc7406be-8ad0-4191-821c-9002af3328ed-image.png" class=" img-fluid img-markdown" /><br />
It mean env init well, you can try a.temperature() and a.pressure() and a.humidity() to get msg</p>
]]></description><link>https://community.m5stack.com/post/3820</link><guid isPermaLink="true">https://community.m5stack.com/post/3820</guid><dc:creator><![CDATA[heybin]]></dc:creator><pubDate>Thu, 18 Apr 2019 03:11:45 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]M5StickC I2C bus error on Thu, 18 Apr 2019 02:41:50 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the response.  I replaced the grove cable with another grove cable and made sure it was fully seated and still got an error.</p>
<p dir="auto">&gt;&gt;&gt; import units<br />
&gt;&gt;&gt; a = units.E<br />
Traceback (most recent call last):<br />
File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br />
AttributeError: 'module' object has no attribute 'E'</p>
<p dir="auto">&gt;&gt;&gt; a = units.ENV(units.P)<br />
Traceback (most recent call last):<br />
File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br />
AttributeError: 'module' object has no attribute 'P'</p>
<p dir="auto">&gt;&gt;&gt; a = units.ENV(units.PORTA)<br />
&gt;&gt;&gt;</p>
<p dir="auto">Tried this as well:<br />
&gt;&gt;&gt; from machine import I2C<br />
&gt;&gt;&gt; i2c = I2C(freq=400000, sda=21, scl=22)<br />
&gt;&gt;&gt; Traceback (most recent call last):<br />
File "<a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow ugc">boot.py</a>", line 29, in reboot<br />
File "m5flow/hardware/axp192.py", line 96, in btnState<br />
File "m5flow/hardware/axp192.py", line 103, in _regChar<br />
OSError: I2C bus error (6)</p>
<p dir="auto">&gt;&gt;&gt; i2c.scan()<br />
[52, 81, 108]<br />
&gt;&gt;&gt; Traceback (most recent call last):<br />
File "<a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow ugc">boot.py</a>", line 29, in reboot<br />
File "m5flow/hardware/axp192.py", line 96, in btnState<br />
File "m5flow/hardware/axp192.py", line 103, in _regChar<br />
OSError: I2C bus error (6)</p>
]]></description><link>https://community.m5stack.com/post/3818</link><guid isPermaLink="true">https://community.m5stack.com/post/3818</guid><dc:creator><![CDATA[csqrd]]></dc:creator><pubDate>Thu, 18 Apr 2019 02:41:50 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]M5StickC I2C bus error on Thu, 18 Apr 2019 01:55:00 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1555552359421-02cec498-7d5a-4e29-a25a-2b5dfd62779a-image.png" alt="0_1555552359157_02cec498-7d5a-4e29-a25a-2b5dfd62779a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">check if the grove port is in proper contact :)</p>
]]></description><link>https://community.m5stack.com/post/3812</link><guid isPermaLink="true">https://community.m5stack.com/post/3812</guid><dc:creator><![CDATA[heybin]]></dc:creator><pubDate>Thu, 18 Apr 2019 01:55:00 GMT</pubDate></item></channel></rss>