<?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[Using a PaHUB with NeoPixel, is it possible, how do a find&#x2F;set the address of the unit when accessing via the PaHUB?]]></title><description><![CDATA[<p dir="auto">Hi.  I am trying to connect and access a UHF RFID reader and NeoPixel RGB strip connected to a PaHUB and then to a Core2.  Firstly, I note that for these two units, PaHUB is not an option in the Port selector (so perhaps they're not compatible)?  If this should work then how should I code this MicroPython; I have done the following having connected to the NeoPixel on Pin 0:</p>
<p dir="auto">pahub_1 = unit.get(unit.PAHUB, unit.PORTA)<br />
neopixel_1 = unit.get(unit.NEOPIXEL, unit.PAHUB0, 10)</p>
<p dir="auto">However, any attempt to use the neopixel e.g.<br />
while True:<br />
neopixel_1.setColorFrom(1, 5, 0x183737)</p>
<p dir="auto">have failed?  Any advice would be much appreciated as I'm a complete Novice.</p>
<p dir="auto">Regards,</p>
<p dir="auto">Tom</p>
]]></description><link>https://community.m5stack.com/topic/3476/using-a-pahub-with-neopixel-is-it-possible-how-do-a-find-set-the-address-of-the-unit-when-accessing-via-the-pahub</link><generator>RSS for Node</generator><lastBuildDate>Tue, 05 May 2026 18:32:42 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3476.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Jul 2021 09:03:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using a PaHUB with NeoPixel, is it possible, how do a find&#x2F;set the address of the unit when accessing via the PaHUB? on Fri, 23 Jul 2021 15:48:54 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> Thank you so much, you've saved me hours of trawling.</p>
]]></description><link>https://community.m5stack.com/post/14479</link><guid isPermaLink="true">https://community.m5stack.com/post/14479</guid><dc:creator><![CDATA[Tomarno]]></dc:creator><pubDate>Fri, 23 Jul 2021 15:48:54 GMT</pubDate></item><item><title><![CDATA[Reply to Using a PaHUB with NeoPixel, is it possible, how do a find&#x2F;set the address of the unit when accessing via the PaHUB? on Fri, 23 Jul 2021 10:22:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/tomarno" aria-label="Profile: Tomarno">@<bdi>Tomarno</bdi></a></p>
<p dir="auto">PaHUB is an I2C extender allowing multiple I2C devices (using the same I2C address) on the M5Core2 I2C port A.</p>
<p dir="auto">Unfortunately neither of the two units you are trying to connect are I2C devices.</p>
<p dir="auto">UHF RFID reader unit is an UART device and NeoPixel requires dedicated GPIOs as the timing needs to be quite accurate.</p>
<p dir="auto">From UIFlow I understand that you could connect NeoPixel to port B and UHF RFID reader to port C. But you'll need an <a href="https://shop.m5stack.com/collections/m5-base/products/m5go-battery-bottom2-for-core2-only" target="_blank" rel="noopener noreferrer nofollow ugc">M5Go2 battery bottom</a> to get port B and port C.</p>
<p dir="auto">If you want to try out either of the two units, they can be connected to port A, but only one at that time.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/14477</link><guid isPermaLink="true">https://community.m5stack.com/post/14477</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 23 Jul 2021 10:22:59 GMT</pubDate></item></channel></rss>