update doc format

This commit is contained in:
vany5921
2020-04-02 19:30:13 +08:00
parent 3b8d06dd5a
commit 1307df5dde
5 changed files with 70 additions and 57 deletions
+36 -14
View File
@@ -6,7 +6,7 @@
## 描述
**NEOFLASH** 是一款Neopixel灯板.集成 192 个 RGB LED24x8),与 PIR 人体感应 Unit,且提供 3 个I2C拓展接口.灯板通过GROVE B接口与M5Core进行连接.Neopixel连接GPIO26、PIR人体感应连接至GPIO36.)灯板背部安装磁铁,可以将其放置在金属物体表面吸附固定.
**NEOFLASH** 是一款RGB LED灯板.集成 192 个 RGB LED24x8),与 PIR 人体感应 Unit,且提供 3 个I2C拓展接口.灯板通过GROVE B接口与M5Core进行连接.RGB LED连接GPIO26、PIR人体感应连接至GPIO36.)灯板背部安装磁铁,可以将其放置在金属物体表面吸附固定.
<img src="assets/img/product_pics/unit/unit_neoflash_03.png">
@@ -14,9 +14,7 @@
## 产品特性
- Neopixel灯数量: 192
- PIR人体感应
- PORTA 拓展(3个)
- 人体感应
- 开发平台: Arduino, UIFlow(Blockly, Python)
- 2x LEGO 兼容孔
@@ -25,11 +23,28 @@
- 1x NeoFlash Unit
- 1x Grove 线
## 相关链接
## 规格参数
<table>
<tr style="font-weight:bold">
<td>规格</td>
<td>参数</td>
</tr>
<tr>
<td>RGB LED</td>
<td>x 192</td>
</tr>
<tr>
<td>PORTA接口</td>
<td>x 3</td>
</tr>
<tr>
<td>孔数量</td>
<td>40</td>
</tr>
</table>
- **[FastLED Library](https://github.com/FastLED/FastLED/wiki/Overview)**
- **[FastLED Reference(中文版本)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
## EasyLoader
@@ -43,13 +58,26 @@
?>3.目前EasyLoader仅适用于Windows操作系统、兼容M5体系采用ESP32作为控制核心的主机.在为M5Core烧录前需要安装CP210X驱动程序(使用M5StickC作为控制器的则无需安装)[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
### 管脚映射
<table>
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
<tr><td>NEOFLASH Unit</td><td>PIR Pin</td><td>RGB Pin</td><td>5V</td><td>GND</td></tr>
</table>
## 相关链接
- **[FastLED Library](https://github.com/FastLED/FastLED/wiki/Overview)**
- **[FastLED Reference(中文版本)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
## 案例程序
### Arduino IDE
该案例将展示基于网络的PIR人体感应时钟.当检测到人体靠近时,灯板点亮显示实时时间,当检测信号消失,则熄灭灯板.
[请点击此处下载Arduino示例代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/Arduino)
- [请点击此处下载Arduino示例代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/Arduino)
<img src="assets/img/product_pics/unit/unit_example/NEOFLASH/example_unit_neoflash_01.png">
@@ -59,12 +87,6 @@
<img src="assets/img/product_pics/unit/neoflash.png">
### 管脚映射
<table>
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
<tr><td>NEOFLASH Unit</td><td>PIR Pin</td><td>RGB Pin</td><td>5V</td><td>GND</td></tr>
</table>
## 相关视频
+13 -12
View File
@@ -22,12 +22,6 @@
- 1x RGB LED Unit
## 相关链接
- **[FastLED Library](https://github.com/FastLED/FastLED/wiki/Overview)**
- **[FastLED Reference(中文版本)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
@@ -40,6 +34,19 @@
?>3.目前EasyLoader仅适用于Windows操作系统、兼容M5体系采用ESP32作为控制核心的主机.在为M5Core烧录前需要安装CP210X驱动程序(使用M5StickC作为控制器的则无需安装)[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
### 管脚映射
<table>
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
<tr><td>NEOPIXEL Unit</td><td>/</td><td>Signal Pin</td><td>5V</td><td>GND</td></tr>
</table>
## 相关链接
- **[FastLED Library](https://github.com/FastLED/FastLED/wiki/Overview)**
- **[FastLED Reference(中文版本)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
## 案例程序
### 1. Arduino IDE
@@ -54,12 +61,6 @@
<img src="assets/img/product_pics/unit/unit_example/NEOPIXEL/example_unit_neopixel_01.png">
### 管脚映射
<table>
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
<tr><td>NEOPIXEL Unit</td><td>/</td><td>Signal Pin</td><td>5V</td><td>GND</td></tr>
</table>
## 相关视频
+5 -5
View File
@@ -13,7 +13,7 @@
- 角度:180°
- 红外限位开关
## 套件清单
## 包含
- 1x OP.180 unit
- 1x GROVE 线
@@ -23,10 +23,6 @@
- 自动门
- 自动化机械控制
## 原理图
<img src="assets/img/product_pics/unit/op180/unit_op180_04.jpg" width="30%" height="30%">
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
@@ -39,6 +35,10 @@
?>3.目前EasyLoader仅适用于Windows操作系统、兼容M5体系采用ESP32作为控制核心的主机.在为M5Core烧录前需要安装CP210X驱动程序(使用M5StickC作为控制器的则无需安装)[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
## 原理图
<img src="assets/img/product_pics/unit/op180/unit_op180_04.jpg" width="30%" height="30%">
## 案例程序
- [点击此处获取Arduino案例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/OP90.180).
+5 -5
View File
@@ -13,7 +13,7 @@
- 角度:90°
- 红外限位开关
## 套件清单
## 包含
- 1x OP.90 unit
- 1x GROVE 线
@@ -23,10 +23,6 @@
- 自动门
- 自动化机械控制
## 原理图
<img src="assets/img/product_pics/unit/op90/unit_op90_04.jpg" width="30%" height="30%">
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
@@ -39,6 +35,10 @@
?>3.目前EasyLoader仅适用于Windows操作系统、兼容M5体系采用ESP32作为控制核心的主机.在为M5Core烧录前需要安装CP210X驱动程序(使用M5StickC作为控制器的则无需安装)[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
## 原理图
<img src="assets/img/product_pics/unit/op90/unit_op90_04.jpg" width="30%" height="30%">
## 案例程序
- [点击此处获取Arduino案例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/OP90.180).
+11 -21
View File
@@ -12,25 +12,19 @@
内部集成**TCA9548A**-I2C多路复用器,配有8个可通过I2C总线控制的双向转换开关.串行时钟/串行数据(SCL /SDA)上行对可扩展为8个下行对或通道.根据可编程控制寄存器的内容,可选择任一单独SCn /SDn通道或者通道组合.
支持多层 Unit 嵌套,这意味着你可以将PaHUB连接到PaHUB上以获得更多的I2C从设备接口.(例:将7个Unit进行连接,将获得36个**I2C**接口,且在主控仅仅占用了一个GROVE端口)当你的项目需要挂载多个I2C设备或存在I2C地址冲突时,PaHUB Unit 是完美解决方案.
支持多层 Unit 嵌套,这意味着你可以将PaHUB连接到PaHUB上以获得更多的I2C从设备接口.(例:将7个Unit进行连接,将获得36个**I2C**接口,且在主控仅仅占用了一个GROVE端口)当你的项目需要挂载多个I2C设备或存在I2C地址冲突时,PaHUB Unit 是完美解决方案.该 Unit 的 I2C 地址为0x70(可通过调整电阻进行更改).
该 Unit 的 I2C 地址为0x70(可通过调整电阻进行更改).
*注意:编程时请注意通道顺序*
注意:编程时请注意通道顺序
<img src="assets/img/product_pics/unit/pahub/pahub_p2.jpg" width="30%" height="30%">
### 产品特性
## 产品特性
- I2C GROVE PORTA 拓展
- 2x LEGO 兼容孔
- 允许多个嵌套
- 1-6 拓展
## 原理图
<img src="assets/img/product_pics/unit/pahub/pahub_sch.png" width="50%">
参考原理图及TCA9548A数据手册可知,该Unit能够通过控制A0~A2引脚的电平组合,修改设备的I2C地址。(默认地址为0x70)
在Unit的PCB板上预留了三个贴片电阻焊接位,分别为A0-A2,如下图所示。
@@ -41,27 +35,23 @@
<img src="assets\img\product_pics\unit\pahub\pahub_p4.jpg" width="50%">
### 套件清单
## 包含
- 1x PaHUB Unit
- 1x Grove 线
## 参考文档
## 应用
- Datasheet - **[TCA9548A](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/TCA9548A_en.pdf)**
- I2C扩展
## 案例程序
## 原理图
- 通讯类型 - I2C
- 地址 - 0x70
<img src="assets/img/product_pics/unit/pahub/pahub_sch.png" width="50%">
### UIFlow
## 相关链接
[获取UIFlow示例点击这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/PaHUB/UIFlow)
<img src="assets/img/product_pics/unit/pahub/pahub.png" width="80%" height="80%">
[Arduino示例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/PaHUB/Arduino/PaHUB)
- **Datasheet**
- **[TCA9548A](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/TCA9548A_en.pdf)**
## EasyLoader