PA.HUB2 Unit - documentation
-
Do anyone know if this device has any decent documentation? The product pages are confusing. The PAHUB page has some sample code but points to the PAHUB2 page. The PAHUB2 page has a link to some UIFLOW 1 sample code that has no explanation of what it is doing
Both UIFLOW1 and UIFlow2 have the PAHUB as a unit but not the PAHUB2. I have no idea how to use this unit
I like M5Stack products, but the documentation is, in my opinion, awful.
I will see if I can work it out though
-
Hello @tonyd
PaHub and PaHub2 units have an identical API so you should be able to use the PaHub blocks in UIFlow2 for both.
That said, you only need a PaHub/PaHub2 unit if you want to control more than one I2C unit of the same kind and these I2C units all have the same I2C address.
If the I2C units you want to control all have different I2C addresses there is no need for a PaHub/PaHub2 unit as all I2C units can just be connected in parallel.
Maybe let us know how your setup looks like and we can try to help you.
Thanks
Felix -
I have a Stick C plus 1.1 and I want to attach a RFID2 and a GLASS2. The idea being I will display a message on the GLASS2 depending on the data read from the RFID2.
I am using a PAHUB2 as the Stick C only has a single port, so I go from Stick C to PAHUB2 and have the RFRID2 on channel 0 and the GLASS2 on channel 1.
Tony
-
Hello @tonyd
that setup doesn't require a PaHub/PaHub2 as the two I2C units: RFID2 (0x28) and GLASS2 (0x3D) use different I2C addresses. You can simply connect RFID2 unit and GLASS2 unit in parallel and since GLASS2 unit has two ports you don't need additional hardware either.
Connect GLASS2 unit to M5StickCPlus and then connect RFID2 to the second port of the GLASS2 unit.
Then in UIFlow2 add both units (GLASS2 and RFID2) and start programming them.
BTW: I2C is a bus system - you can read up about it here.
Thanks
Felix -
hi @felmue
Thanks, I have it working now, I just didn't understand what PAHUB2 did.Do you happen to know what the GLASS2 Scroll method does? I want to scroll a line of long text from right to left. I can't find any documentation that describes each of the methods in detail
Thanks again
Tony
-
Hello @tonyd
I am glad to hear you got it working.
Sorry, no, I don't know what the scroll method does.
Thanks
Felix