<?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[PaHub Code issue in UIFlow2]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a>  I'm trying to write an example of using the PaHub in UIFlow2 but found a bug:</p>
<pre><code class="language-i2c0">  env3_0 = ENVUnit(i2c=i2c0, type=3)
  env4_0 = ENVUnit(i2c=PAHUBUnit(i2c=i2c0, channel=0), type=4)
  pahub_0 = PAHUBUnit(i2c=i2c0, channel=0)
</code></pre>
<p dir="auto">Should be:</p>
<pre><code class="language-i2c0">  env3_0 = ENVUnit(i2c=PAHUBUnit(i2c=i2c0, channel=1), type=3)
  env4_0 = ENVUnit(i2c=PAHUBUnit(i2c=i2c0, channel=0), type=4)
  pahub_0 = PAHUBUnit(i2c=i2c0, channel=0)
</code></pre>
<p dir="auto">but no matter what I try, the Pahub always crashes with "device not found"</p>
]]></description><link>https://community.m5stack.com/topic/6100/pahub-code-issue-in-uiflow2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 16:18:29 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6100.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Feb 2024 12:52:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PaHub Code issue in UIFlow2 on Sat, 17 Feb 2024 19:50:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a></p>
<p dir="auto">nice! And thanks for the tip with the # before the note.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/23870</link><guid isPermaLink="true">https://community.m5stack.com/post/23870</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 17 Feb 2024 19:50:01 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Code issue in UIFlow2 on Sat, 17 Feb 2024 19:08:47 GMT]]></title><description><![CDATA[<p dir="auto">Thanks here we are<br />
<img src="/assets/uploads/files/1708196920877-screenshot-2024-02-17-at-19.08.18-resized.png" alt="0_1708196918513_Screenshot 2024-02-17 at 19.08.18.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/23869</link><guid isPermaLink="true">https://community.m5stack.com/post/23869</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 17 Feb 2024 19:08:47 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Code issue in UIFlow2 on Sat, 17 Feb 2024 18:57:46 GMT]]></title><description><![CDATA[<p dir="auto">Thanks but just a note for your example, Use the execute code but ad a hash (#) before the note</p>
]]></description><link>https://community.m5stack.com/post/23868</link><guid isPermaLink="true">https://community.m5stack.com/post/23868</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 17 Feb 2024 18:57:46 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Code issue in UIFlow2 on Sat, 17 Feb 2024 18:39:51 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a></p>
<p dir="auto">please find an example in the UIFlow2 Project Zone called <em>M5Dial_PbHub_EnvIII_EnvIV</em>.</p>
<p dir="auto">It features an M5Dial, PaHub (modified I2C address 0x71), Env III (channel 0) and Env IV (channel 1).</p>
<pre><code>M5Dial
   |
PaHub (0x71) -|
              |- ch0 - ENV III (0x44, 0x70)
              |- ch1 - ENV IV (0x44, 0x76)
</code></pre>
<p dir="auto">Is that what you are looking for?</p>
<p dir="auto">BTW: my code has env defined as PAHUBUnit because the Env III and Env IV are connected to channel 0 and channel 1 of the PaHub.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/23867</link><guid isPermaLink="true">https://community.m5stack.com/post/23867</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 17 Feb 2024 18:39:51 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Code issue in UIFlow2 on Sat, 17 Feb 2024 16:45:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> said in <a href="/post/23865">PaHub Code issue in UIFlow2</a>:</p>
<blockquote>
<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a></p>
<p dir="auto">the additional <code>address</code> parameter is for the PaHub. E.g. I modified the PaHub to use I2C address 0x71 (instead of default address 0x70).</p>
<p dir="auto">BTW: ENVIII alternate I2C address is 0x56.</p>
<p dir="auto">Thanks<br />
Felix</p>
</blockquote>
<p dir="auto">I've changed the Hub address to 71 but the definition is for pahub_0 but you code has env defined as PAHUBUnit<br />
hence the confusion</p>
]]></description><link>https://community.m5stack.com/post/23866</link><guid isPermaLink="true">https://community.m5stack.com/post/23866</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 17 Feb 2024 16:45:38 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Code issue in UIFlow2 on Sat, 17 Feb 2024 16:21:10 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a></p>
<p dir="auto">the additional <code>address</code> parameter is for the PaHub. E.g. I modified the PaHub to use I2C address 0x71 (instead of default address 0x70).</p>
<p dir="auto">BTW: ENVIII alternate I2C address is 0x56.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/23865</link><guid isPermaLink="true">https://community.m5stack.com/post/23865</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 17 Feb 2024 16:21:10 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Code issue in UIFlow2 on Sat, 17 Feb 2024 15:43:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> said in <a href="/post/23862">PaHub Code issue in UIFlow2</a>:</p>
<blockquote>
<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a></p>
<p dir="auto">remember, PaHub and ENVIII share the same I2C address (0x70) by default, e.g. if not modified. As discussed <a href="https://community.m5stack.com/topic/3963/pahub-enviii-pressure-reading-issue/3">here</a>.</p>
<p dir="auto">Thanks<br />
Felix</p>
</blockquote>
<p dir="auto">Thanks but I have an issue with solving your code. in the line:<br />
<code>env3_0 = ENVUnit(i2c=PAHUBUnit(i2c=i2c0, channel=0, address=0x71), type=3)</code></p>
<p dir="auto">You have attached the Address to the ENV but we need to override the pahub_0 definition to include the address or it still looks to address 0x70 and this I can't work out.</p>
]]></description><link>https://community.m5stack.com/post/23864</link><guid isPermaLink="true">https://community.m5stack.com/post/23864</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 17 Feb 2024 15:43:26 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Code issue in UIFlow2 on Sat, 17 Feb 2024 14:26:29 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a></p>
<p dir="auto">remember, PaHub and ENVIII share the same I2C address (0x70) by default, e.g. if not modified. As discussed <a href="https://community.m5stack.com/topic/3963/pahub-enviii-pressure-reading-issue/3">here</a>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/23862</link><guid isPermaLink="true">https://community.m5stack.com/post/23862</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 17 Feb 2024 14:26:29 GMT</pubDate></item></channel></rss>