<?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 not recognized on port SDA21&#x2F;SCL22 (uiflow 1.9.1) - help needed]]></title><description><![CDATA[<p dir="auto">I am limited in number of ports for my project, I have to use I2C with internal ports 21/22.<br />
When I declare in Uiflow a PaHUB alone on 21/22, I don't get an error message. But if I declare in Uiflow a Pahub and an Extend i/o unit on the Pahub, I systematically get an error message on the CORE2 "Pahub unit may be not connected".<br />
If I connect and declare the Pahub whith extend i/o on port A it works.<br />
I need several Extend i/o, I have no other solution than the PaHUB.<br />
I tried to modify the I2C address of an extend i/o (0x25), but Uifow does not recognize it, it looks for it on 0x27 (possible to change that?)<br />
A little help would be appreciated</p>
]]></description><link>https://community.m5stack.com/topic/4034/pahub-not-recognized-on-port-sda21-scl22-uiflow-1-9-1-help-needed</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 15:16:47 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4034.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Feb 2022 17:27:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Pahub not recognized on port SDA21&#x2F;SCL22 (uiflow 1.9.1) - help needed on Sun, 13 Feb 2022 19:45:13 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/arno" aria-label="Profile: Arno">@<bdi>Arno</bdi></a></p>
<p dir="auto">I am sorry, I cannot help you on this one - I don't have the EXTEND I/O unit to test.</p>
<p dir="auto">That said, you might get some idea how to talk to it through I2C by looking at the Arduino <a href="https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/EXTIO/Arduino/EXT_IO" target="_blank" rel="noopener noreferrer nofollow ugc">example</a>?</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/16640</link><guid isPermaLink="true">https://community.m5stack.com/post/16640</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 13 Feb 2022 19:45:13 GMT</pubDate></item><item><title><![CDATA[Reply to Pahub not recognized on port SDA21&#x2F;SCL22 (uiflow 1.9.1) - help needed on Sun, 13 Feb 2022 15:10:24 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a></p>
<p dir="auto">The PaHUB solution on internal I2C 21/22 does not seem to be the right solution.<br />
I only have to use two EXTEND I/O with two different addresses, but Uiflow only recognizes address 0x27.<br />
Do you have an example of using EXTEND I/O with the I2C master functions of Uiflow without going through the declaration of an EXTEND I/O unit.<br />
I only need the 8 I / O input and to read their status</p>
<p dir="auto"><img src="/assets/uploads/files/1644764900599-db71af6f-e651-4726-89cf-6cfc78fd0c7b-image.png" alt="0_1644764900756_db71af6f-e651-4726-89cf-6cfc78fd0c7b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">an example of use would be very useful</p>
]]></description><link>https://community.m5stack.com/post/16637</link><guid isPermaLink="true">https://community.m5stack.com/post/16637</guid><dc:creator><![CDATA[Arno]]></dc:creator><pubDate>Sun, 13 Feb 2022 15:10:24 GMT</pubDate></item><item><title><![CDATA[Reply to Pahub not recognized on port SDA21&#x2F;SCL22 (uiflow 1.9.1) - help needed on Sat, 12 Feb 2022 22:34:13 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/arno" aria-label="Profile: Arno">@<bdi>Arno</bdi></a></p>
<p dir="auto">I don't think this kind of setup will work with the current UiFlow version. I tried many things to trick the PbHub being recognized on a PaHub connected to 21/22.</p>
<p dir="auto">That said, the trouble actually starts before that. Even with only a PaHub connected and setup to use 21/22 below code either crashes my M5Core2 after a short time or it shows an <code>I2C bus error (110)</code>. I think the UiFlow firmware and the micropython code both trying to use the I2C bus at the same time is causing this.</p>
<pre><code>from m5stack import *
from m5stack_ui import *
from uiflow import *
import unit

screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
pahub_0 = unit.get(unit.PAHUB, (21,22))

while True:
  pahub_0.select(0, 1)
  wait_ms(2)
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/16630</link><guid isPermaLink="true">https://community.m5stack.com/post/16630</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 12 Feb 2022 22:34:13 GMT</pubDate></item></channel></rss>