<?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[ToF works from UI, not when using ampy]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">the ToF sample program does not work when running via ampy. But it works from the UIFlow.</p>
<p dir="auto">How to reproduce:</p>
<ul>
<li>Connect a ToF sensor to the M5 stack (Firmware UIFlow 1.3.2)</li>
<li>Get the sample ToF program</li>
<li>Run via UI. Should work fine.</li>
<li>Copy&amp;paste the Python code into a file named <a href="http://tof.py" target="_blank" rel="noopener noreferrer nofollow ugc">tof.py</a></li>
<li>Disconnect M5Stack</li>
<li>Run ampy reset to get the M5Stack into non-UIFlow (ampy  v1.0.7 used)</li>
<li>Run ampy run <a href="http://tof.py" target="_blank" rel="noopener noreferrer nofollow ugc">tof.py</a></li>
</ul>
<p dir="auto">You'll see that the distance is and stays 0</p>
]]></description><link>https://community.m5stack.com/topic/1118/tof-works-from-ui-not-when-using-ampy</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 13:16:05 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1118.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Jun 2019 06:45:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ToF works from UI, not when using ampy on Tue, 02 Jul 2019 01:41:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1327">@hkubota</a> try running it from the micropython plugin in vscode. Video tutorial on how to get setup here <a href="https://www.youtube.com/watch?v=Y9pOWgsNgKk&amp;t=73s" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=Y9pOWgsNgKk&amp;t=73s</a></p>
]]></description><link>https://community.m5stack.com/post/4745</link><guid isPermaLink="true">https://community.m5stack.com/post/4745</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Tue, 02 Jul 2019 01:41:12 GMT</pubDate></item></channel></rss>