diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css index 27dda7be..61bd9fe7 100644 --- a/docs/assets/css/main.css +++ b/docs/assets/css/main.css @@ -239,6 +239,8 @@ body[data-page="ja/README.md"] #faces-kit { #rgb, #relay, #hub, +#pahub, +#pbhub, #_396port, #proto-1, #extio, diff --git a/docs/assets/img/product_pics/unit/pahub/pahub_p1.jpg b/docs/assets/img/product_pics/unit/pahub/pahub_p1.jpg new file mode 100644 index 00000000..30a2d594 Binary files /dev/null and b/docs/assets/img/product_pics/unit/pahub/pahub_p1.jpg differ diff --git a/docs/assets/img/product_pics/unit/pahub/pahub_p2.jpg b/docs/assets/img/product_pics/unit/pahub/pahub_p2.jpg new file mode 100644 index 00000000..f8d9a3e5 Binary files /dev/null and b/docs/assets/img/product_pics/unit/pahub/pahub_p2.jpg differ diff --git a/docs/assets/img/product_pics/unit/pahub/pahub_p3.jpg b/docs/assets/img/product_pics/unit/pahub/pahub_p3.jpg new file mode 100644 index 00000000..a36052d4 Binary files /dev/null and b/docs/assets/img/product_pics/unit/pahub/pahub_p3.jpg differ diff --git a/docs/assets/img/product_pics/unit/pbhub/pbhub_p1.jpg b/docs/assets/img/product_pics/unit/pbhub/pbhub_p1.jpg new file mode 100644 index 00000000..13f0c3bb Binary files /dev/null and b/docs/assets/img/product_pics/unit/pbhub/pbhub_p1.jpg differ diff --git a/docs/assets/img/product_pics/unit/pbhub/pbhub_p3.jpg b/docs/assets/img/product_pics/unit/pbhub/pbhub_p3.jpg new file mode 100644 index 00000000..6deb7e34 Binary files /dev/null and b/docs/assets/img/product_pics/unit/pbhub/pbhub_p3.jpg differ diff --git a/docs/assets/img/product_pics/unit/pbhub/pbhub_sch.jpg b/docs/assets/img/product_pics/unit/pbhub/pbhub_sch.jpg new file mode 100644 index 00000000..e32958c0 Binary files /dev/null and b/docs/assets/img/product_pics/unit/pbhub/pbhub_sch.jpg differ diff --git a/docs/en/unit/pahub.md b/docs/en/unit/pahub.md index cc29818c..848a3efc 100644 --- a/docs/en/unit/pahub.md +++ b/docs/en/unit/pahub.md @@ -1,13 +1,16 @@ # Unit PaHUB {docsify-ignore-all} + + + + + +:memo:**[Description](#Description)**      :octocat:**[Example](#Example)**      ðŸ›’**[Purchase](https://www.aliexpress.com/store/productM5Stack-Official-NeoPixel-RGB-LEDs-Cable-SK6812-with-GROVE-Port-2m-1m-50cm-20cm-10cm/3226069_32950831315.html?spm=a2g1x.12024536.productList_5885013.pic_0)**      :clapper:**[Related Video](#Related-Video)** +======= *** -:memo:**[Description](#Description)**      :electric_plug:**[Schematic](#Schematic)**       ðŸ›’**[Purchase](https://www.aliexpress.com/item/New-Arrival-M5Stack-Official-I2C-Hub-1-to-6-Expansion-Grove-I2C-Interface-for-Arduino-Blockly/32998974179.html?gps-id=pcStoreJustForYou&scm=1007.23125.122752.0&scm_id=1007.23125.122752.0&scm-url=1007.23125.122752.0&pvid=0cd77ea5-52b2-4aa7-856b-0dd4e43ee0d1&spm=a2g1y.12024536.smartJustForYou_39076158.12)** - - - ## Description **PaHUB**, is a expander for I2C GROVE PORTA(red port on M5Core). 1-to-6. If you want connect mutiple I2C slave devices and some of them may sharing the same address, this unit can resolve I2C address conflicts. @@ -21,7 +24,9 @@ The I2C address of this unit is 0x77 (changable by resistors). *Notice: Please pay attention to the channel order while programing* - + + + ## Product Features @@ -30,11 +35,21 @@ The I2C address of this unit is 0x77 (changable by resistors). - Nested allowed - 1-To-6 -## Include +## Kit includes +======= - 1x PaHUB Unit - 1x Grove Cable + + +## DOCUMENTS + + +- Datasheet - **[TCA9548A](http://www.ti.com/lit/ds/symlink/tca9548a.pdf)** + + +======= ## Schematic -### PinMap +## Driver Protocol - - - -
M5Core(GROVE A)GPIO22GPIO215VGND
PaHUB UnitSCLSDA5VGND
+- Driver firmware - - \ No newline at end of file +- Test code - +- protovol type - I2C +- address - 0x77 diff --git a/docs/en/unit/pbhub.md b/docs/en/unit/pbhub.md index f14d550b..a310388e 100644 --- a/docs/en/unit/pbhub.md +++ b/docs/en/unit/pbhub.md @@ -1,20 +1,37 @@ # Unit PbHUB {docsify-ignore-all} + + + +*** + +:memo:**[Description](#Description)**      :bulb:**[Assembly](#Assembly)**      ðŸ›’**[Purchase](https://www.aliexpress.com/store/product/M5Stack-Official-Rubber-Band-Powered-Butterfly-Launcher-with-SERVO-control-and-GROVE-Cable-Adapter-Children-s/3226069_32956965036.html?spm=2114.12010615.8148356.2.486b2682Z5xogF)**      :clapper:**[Related Video](#Related-Video)** + +## DESCRIPTION +======= *** -:memo:**[Description](#Description)**      :electric_plug:**[Schematic](#Schematic)**       ðŸ›’**[Purchase](https://www.aliexpress.com/store/product/New-Arrival-M5Stack-Official-I-O-Hub-1-to-6-Expansion-Grove-I-O-Interface-for/3226069_33006652505.html?spm=2114.12010612.8148356.36.1e112c5cR01Vkh)** - -## Description - **PbHUB**, is a expander for singel-bus GROVE PORTB(Black port on M5GO Base). 1-to-6. PortB can be used as GPIO and analog in two data lines connected to GPIO36 and GPIO26 on ESP32. Same as PaHUB, it provides a solution for mutiple device control by PORTB. With PbHUB each of the IO can be configurated to input, output and analog in as you like. Unfortunatly this Unit is unnested. It is build with a MEGA328, with a simple driver firmware inside. -The I2C address of this unit is 0x40(Changable by resistors). + + *Notice: Please pay attention to the channel order while programing* + + + +### Product Features + +- Single-Bus GROVE PORTB Expander +- Two Lego-compatible holes +- 1-To-6 + +### Kit includes +======= ## Product Features @@ -24,17 +41,26 @@ The I2C address of this unit is 0x40(Changable by resistors). - Nested allowed - 1-To-6 -## Include - 1x PbHUB Unit - 1x Grove Cable + + +## Schematic + + + ## Driver Protocol -- protovol type - I2C +- Driver firmware - **[PbHUB](https://github.com/m5stack/PbHUB/tree/master/PortB_HUB/Firmware)** + +- Test code - **[PbHUB](https://github.com/m5stack/PbHUB/tree/master/PortB_HUB)** +- protovol type - I2C - address - 0x61 - Set oneLED Color* : LED address(2bytes) + RGB value(3bytes) - Set moreLED Color* : LED start address(2bytes) + LED end address(2bytes) + RGB value(3bytes) +- @@ -63,6 +89,9 @@ The I2C address of this unit is 0x40(Changable by resistors). + +
ch5 cmdA0A1A2A3A4A5A6A7A8A9AAAB
+======= ## Related Link @@ -113,12 +142,4 @@ while (Wire.available()) { -### PinMap - - - -
M5Core(GROVE A)GPIO22GPIO215VGND
PbHUB UnitSCLSDA5VGND
- - \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index e409ca56..d492ae1f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -503,6 +503,8 @@ ## RGB ## RELAY ## HUB +## PaHUB +## PbHUB ## 3.96Port ## PROTO @@ -534,6 +536,20 @@

HUB

+
+ + + +

PaHUB

+
+ +
+ + + +

PbHUB

+
+