<?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 Access cracked.]]></title><description><![CDATA[<p dir="auto">Yes, I am finially able to access 1 of the channels on the PaHub!</p>
<pre><code class="language-from">from m5ui import *
from uiflow import *
import i2c_bus
import unit

setScreenColor(0x222222)
tof1 = unit.get(unit.TOF, unit.PORTA)



label1 = M5TextBox(89, 38, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)
label2 = M5TextBox(69, 116, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)


i2c0 = i2c_bus.easyI2C(i2c_bus.PORTA, 0x70)
while True:
  i2c0.write_u8(0x00, 0x01)
  label2.setText(str(tof1.distance))
  wait_ms(2)
</code></pre>
<p dir="auto">I am using the tof here for this.</p>
]]></description><link>https://community.m5stack.com/topic/1104/pahub-access-cracked</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 00:35:00 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1104.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Jun 2019 14:05:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PaHub Access cracked. on Sat, 31 Aug 2019 14:33:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Thanks, it does work with 1.3.5 beta!</p>
]]></description><link>https://community.m5stack.com/post/5408</link><guid isPermaLink="true">https://community.m5stack.com/post/5408</guid><dc:creator><![CDATA[maechler]]></dc:creator><pubDate>Sat, 31 Aug 2019 14:33:12 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Access cracked. on Sat, 31 Aug 2019 13:31:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maechler" aria-label="Profile: maechler">@<bdi>maechler</bdi></a> 1.3.5 beta sorry in and out of the forum</p>
]]></description><link>https://community.m5stack.com/post/5402</link><guid isPermaLink="true">https://community.m5stack.com/post/5402</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 31 Aug 2019 13:31:11 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Access cracked. on Sat, 31 Aug 2019 12:02:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> I am using a regular M5Stack Core. So which version of UIFlow should I be using?</p>
]]></description><link>https://community.m5stack.com/post/5399</link><guid isPermaLink="true">https://community.m5stack.com/post/5399</guid><dc:creator><![CDATA[maechler]]></dc:creator><pubDate>Sat, 31 Aug 2019 12:02:50 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Access cracked. on Sat, 31 Aug 2019 11:36:36 GMT]]></title><description><![CDATA[<p dir="auto">The PaHub will be "Grayed Out if the firmware is not updated and you are using the wrong version of UIFlow.<br />
Also the PaHub does NOT work with the M5Stick.</p>
<p dir="auto">I will try to make a video on the PaHub this weekend but I'm heckticly busy.</p>
]]></description><link>https://community.m5stack.com/post/5396</link><guid isPermaLink="true">https://community.m5stack.com/post/5396</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 31 Aug 2019 11:36:36 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Access cracked. on Sat, 31 Aug 2019 09:44:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lukasmaximus" aria-label="Profile: lukasmaximus">@<bdi>lukasmaximus</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Thank you very much for your answers!</p>
<p dir="auto">I am working with Visual Studio Code and UIFlow-v1.3.2. But I use <a href="http://flow.m5stack.com" target="_blank" rel="noopener noreferrer nofollow ugc">flow.m5stack.com</a> to look up how to connect the sensors. I was confused because PaHub is greyed out there:</p>
<p dir="auto"><img src="/assets/uploads/files/1567243294931-screenshot-2019-08-31-at-11.19.06-resized.png" alt="0_1567243286766_Screenshot 2019-08-31 at 11.19.06.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thanks for showing how to select the PaHub, however it does still not work for me. Even with the simplest possible example in UI Flow I get the following error: <strong>'module' object has no attribute 'PAHUB0'</strong></p>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import unit</p>
<p dir="auto">setScreenColor(0x000000)<br />
env1 = unit.get(unit.ENV, unit.PAHUB0)</p>
<p dir="auto">If I connect the same unit to <strong>unit.PORTA</strong> everything works fine. I would like to be able to connect EARTH, ENV and LIGHT units using the PaHub. Is it possible that not all units are supported yet?<br />
E.g. for the EARTH unit I can not select PaHub using the drop down you showed.</p>
<p dir="auto">Thanks for your help!</p>
]]></description><link>https://community.m5stack.com/post/5394</link><guid isPermaLink="true">https://community.m5stack.com/post/5394</guid><dc:creator><![CDATA[maechler]]></dc:creator><pubDate>Sat, 31 Aug 2019 09:44:52 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Access cracked. on Wed, 28 Aug 2019 13:22:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lukasmaximus" aria-label="Profile: lukasmaximus">@<bdi>lukasmaximus</bdi></a> my code is before the Pahub was added to UIFlow and I haven’t had the time to check out the  pahub blocks added yet</p>
<p dir="auto">Sweet you can now select the hubs ports. I didn’t know that.</p>
]]></description><link>https://community.m5stack.com/post/5349</link><guid isPermaLink="true">https://community.m5stack.com/post/5349</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 28 Aug 2019 13:22:59 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Access cracked. on Wed, 28 Aug 2019 07:55:53 GMT]]></title><description><![CDATA[<p dir="auto">Seems your over complicating things a little <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> We apologise that there has been very little info on how to connect multiple sensors up to the PaHub, I also was struggling to set up a bunch of sensors before someone on the dev team showed me. But it is as simple as selecting your desired unit in the units tab and selecting pahub from the dropdown list instead of port a.<br />
<img src="/assets/uploads/files/1566978740639-screen-shot-2019-08-28-at-15.18.21.png" alt="0_1566978740475_Screen Shot 2019-08-28 at 15.18.21.png" class=" img-fluid img-markdown" /><br />
Then you must select the port of the Pahub you wish to connect to. The port numbers are labelled on the pcb if you look closely.<br />
<img src="/assets/uploads/files/1566978833316-wechatimg227-copy-resized.jpeg" alt="0_1566978833032_WechatIMG227 copy.jpeg" class=" img-fluid img-markdown" /><br />
Then this was the code I wrote for a parking proximity alarm<br />
<img src="/assets/uploads/files/1566978916138-screen-shot-2019-08-28-at-15.34.08.png" alt="0_1566978915935_Screen Shot 2019-08-28 at 15.34.08.png" class=" img-fluid img-markdown" /><br />
Hope this helps. If you want me to send the resulting python script I can also send it</p>
]]></description><link>https://community.m5stack.com/post/5340</link><guid isPermaLink="true">https://community.m5stack.com/post/5340</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Wed, 28 Aug 2019 07:55:53 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Access cracked. on Tue, 27 Aug 2019 19:45:13 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, haven't had the time to revisit this how ever I think that it should be</p>
<pre><code>tof1 = unit.get(unit.TOF, unit.PORTA)
tof2= unit.get(unit.TOF, unit.PORTA)


label1 = M5TextBox(89, 38, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)
label2 = M5TextBox(69, 116, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)


i2c0 = i2c_bus.easyI2C(i2c_bus.PORTA, 0x70)
i2c1 = i2c_bus.easyI2C(i2c_bus.PORTA, 0x71)

while True:
  i2c0.write_u8(0x00, 0x01)
  label2.setText(str(tof1.distance))
  wait_ms(2)

</code></pre>
<p dir="auto">or something like this</p>
]]></description><link>https://community.m5stack.com/post/5323</link><guid isPermaLink="true">https://community.m5stack.com/post/5323</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 27 Aug 2019 19:45:13 GMT</pubDate></item><item><title><![CDATA[Reply to PaHub Access cracked. on Tue, 27 Aug 2019 18:51:54 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for sharing! Do you also have an example on how to connect multiple sensors to the PaHub and read values from them?</p>
]]></description><link>https://community.m5stack.com/post/5322</link><guid isPermaLink="true">https://community.m5stack.com/post/5322</guid><dc:creator><![CDATA[maechler]]></dc:creator><pubDate>Tue, 27 Aug 2019 18:51:54 GMT</pubDate></item></channel></rss>