mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
updated PLUS module
This commit is contained in:
|
Before Width: | Height: | Size: 466 KiB After Width: | Height: | Size: 466 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 456 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 460 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 121 KiB |
@@ -1,10 +1,14 @@
|
||||
# PLUS模块
|
||||
|
||||
中文 | [English](/en/product_documents/modules/module_plus) | [日本語](ja/product_documents/modules/module_plus)
|
||||
<img src="assets/img/product_pics/modules/module_plus_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/modules/module_plus_02.png" width="30%" height="30%">
|
||||
|
||||
***
|
||||
|
||||
:memo:**[描述](#描述)** :octocat:**[例程](#原理图)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.11.6e32425el3pHvc&id=579821616764)**
|
||||
|
||||
## 描述
|
||||
|
||||
<mark>Plus</mark>是一个增强型模块,内置了500mAh的电池、齿轮电位器、IR发送器、麦克风焊盘、PORT B(UART Port)和PORT C(GPIO Port)。你可以把它与M5Core堆叠在一起,增强M5Core的增能,Plus模块与M5Core通过I2C通信。I2C地址是0x89。
|
||||
<mark>Plus</mark>是一个增强型模块,内置了500mAh的电池、齿轮电位器(encoder)、IR发送器、麦克风焊盘、PORT B(UART Port)和PORT C(GPIO Port)。你可以把它与M5Core堆叠在一起,增强M5Core的增能,Plus模块与M5Core通过I2C通信。I2C地址是0x62。
|
||||
|
||||
## 特性
|
||||
|
||||
@@ -17,15 +21,33 @@
|
||||
|
||||
- 1x PLUS模块
|
||||
|
||||
## 文档
|
||||
## 相关链接
|
||||
|
||||
- [例程](https://github.com/m5stack/M5Stack/tree/master/examples/Modules/Plus)
|
||||
- [旗舰店](https://www.aliexpress.com/store/product/M5Stack-New-Arrival-PLUS-Module-Encoder-Module-with-MEGA328P-500mAh-Battery-ISP-IR-Transmitter-UART-GPIO/3226069_32949278724.html?spm=a2g1x.12024536.productList_5885013.pic_1)
|
||||
- **[官方频道视频](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
|
||||
|
||||
<figure>
|
||||
<img src="assets/img/product_pics/modules/plus_1.png" height="300" width="300">
|
||||
</figure>
|
||||
- **[官方论坛](http://forum.m5stack.com/)**
|
||||
|
||||
<figure>
|
||||
<img src="assets/img/product_pics/modules/plus_2.png" height="300" width="300">
|
||||
</figure>
|
||||
## 例程
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
```c++
|
||||
/*
|
||||
* 读取齿轮电位器的数据
|
||||
*/
|
||||
Wire.requestFrom(0x62, 2);
|
||||
|
||||
if(Wire.available()) {
|
||||
encode = Wire.read();//read value of encoder
|
||||
if(press_n == 0xff) {
|
||||
pressed = 0;//button released
|
||||
}
|
||||
else {
|
||||
pressed = 1;//button pressed
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Modules/PLUS/Arduino)。
|
||||
|
||||
## 原理图
|
||||
|
||||
Reference in New Issue
Block a user