<?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＋ToF:I2C bus error (19)]]></title><description><![CDATA[<p dir="auto">While using the M5StickC with the M5STACK-TOF-UNIT "Dostance Sensor" connected I receive the following error when running the simple block code on UIFlow</p>
<p dir="auto">It used to work fine(using same code), but suddenly I receive the error.</p>
<p dir="auto">Error:<br />
I2C bus error (19)</p>
<p dir="auto">Code(from UIFlow)</p>
<pre><code class="language-ruby:qiita.py">from m5stack import *
from m5ui import *
from uiflow import *
import time
import unit

setScreenColor(0x111111)
tof0 = unit.get(unit.TOF, unit.PORTA)



label0 = M5TextBox(8, 27, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)


while True:
  label0.setText(str(tof0.distance))
  wait(1)
  wait_ms(2)
</code></pre>
<p dir="auto">I  try another code also, but I still recieved same error.<br />
it looks like</p>
<blockquote>
<p dir="auto">tof0 = unit.get(unit.TOF, unit.PORTA)</p>
</blockquote>
<p dir="auto">part might has a probelm.</p>
<pre><code class="language-ruby:qiita.py">from m5stack import *
from m5ui import *
from uiflow import *
import time
import unit

setScreenColor(0x111111)
tof0 = unit.get(unit.TOF, unit.PORTA)





label0 = M5TextBox(8, 27, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)


while True:
  label0.setText(str('Hello M5'))
  wait(1)
  wait_ms(2)
</code></pre>
<p dir="auto">Any suggestions would be appreciated.</p>
]]></description><link>https://community.m5stack.com/topic/3114/solved-m5stickc-tof-i2c-bus-error-19</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 21:37:19 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3114.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Mar 2021 05:53:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to (Solved)M5StickC＋ToF:I2C bus error (19) on Tue, 23 Mar 2021 14:20:46 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/koms" aria-label="Profile: Koms">@<bdi>Koms</bdi></a></p>
<p dir="auto">you are welcome. Thank you for reporting back. I am glad to hear you got it working.</p>
<p dir="auto">Cheers<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/13199</link><guid isPermaLink="true">https://community.m5stack.com/post/13199</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 23 Mar 2021 14:20:46 GMT</pubDate></item><item><title><![CDATA[Reply to (Solved)M5StickC＋ToF:I2C bus error (19) on Tue, 23 Mar 2021 10:07:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi! <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a></p>
<p dir="auto">Thank you for your advices.</p>
<blockquote>
<p dir="auto">are you using the latest UIFlow firmware?</p>
</blockquote>
<p dir="auto">Yes</p>
<blockquote>
<p dir="auto">have you tried another cable? (I get error 19 when I disconnect the unit)</p>
</blockquote>
<p dir="auto">I tried another cable, the problem is solved!</p>
<p dir="auto">Thank you so much!</p>
]]></description><link>https://community.m5stack.com/post/13196</link><guid isPermaLink="true">https://community.m5stack.com/post/13196</guid><dc:creator><![CDATA[Koms]]></dc:creator><pubDate>Tue, 23 Mar 2021 10:07:18 GMT</pubDate></item><item><title><![CDATA[Reply to (Solved)M5StickC＋ToF:I2C bus error (19) on Tue, 23 Mar 2021 08:56:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/koms" aria-label="Profile: Koms">@<bdi>Koms</bdi></a></p>
<p dir="auto">I am running your code just fine with UIFlow firmware 1.7.3 on my M5StickC.</p>
<ul>
<li>are you using the latest UIFlow firmware?</li>
<li>have you tried another cable? (I get error 19 when I disconnect the unit)</li>
<li>is the cable plugged in all the way?</li>
</ul>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/13195</link><guid isPermaLink="true">https://community.m5stack.com/post/13195</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 23 Mar 2021 08:56:59 GMT</pubDate></item></channel></rss>