diff --git a/docs/zh_CN/hat/hat-bugc.md b/docs/zh_CN/hat/hat-bugc.md index ef5ec9f7..706107f9 100644 --- a/docs/zh_CN/hat/hat-bugc.md +++ b/docs/zh_CN/hat/hat-bugc.md @@ -72,7 +72,6 @@ Bugc底座需要结合M5StickC控制器使用.在底座上,配备了四个由S var purchase_link = 'https://m5stack.com/products/bugc-w-o-m5stickc'; - anchor_search(purchase_link); scrollFunc(); diff --git a/docs/zh_CN/hat/hat-cardkb.md b/docs/zh_CN/hat/hat-cardkb.md index 1bab2ef2..9e56195d 100644 --- a/docs/zh_CN/hat/hat-cardkb.md +++ b/docs/zh_CN/hat/hat-cardkb.md @@ -1,8 +1,6 @@ -# CardKB HAT {docsify-ignore-all} - - - +# CardKB HAT +
## 描述 @@ -26,9 +24,6 @@ ## 产品特性 - 全键盘输入,多种按键组合. - -## 尺寸和重量 - - 尺寸: 84.6mm * 54.2mm * 6.5mm - 重量: 21g @@ -64,50 +59,15 @@ ## 案例程序 -### Arduino IDE +- **Arduino IDE** -*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/CardKB_HAT)* +[请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/CardKB_HAT)获取完整代码 -```arduino -#include -#include - -#define CARDKB_ADDR 0x5F - -void setup() -{ - M5.begin(); - Wire.begin(0, 26); - M5.Lcd.setRotation(3); - M5.Lcd.fillScreen(BLACK); - M5.Lcd.setCursor(0, 0, 2 ); - M5.Lcd.setTextColor(YELLOW); - - M5.Lcd.println("IIC Address: 0x5F\n"); - M5.Lcd.println(">>"); -} -void loop() -{ - Wire.requestFrom(CARDKB_ADDR, 1); - while(Wire.available()) - { - char c = Wire.read(); // receive a byte as characterif - if (c != 0) - { - M5.Lcd.printf("%c", c); - Serial.println(c, HEX); - Serial.println(char(c)); - } - } - // delay(10); -} -``` - -### UIFLOW +- **UIFlow** -*获取UIFLOW例程 [点击](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/CardKB_HAT/UIFLOW)* +获取UIFLOW例程 [点击](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/CardKB_HAT/UIFLOW) ## 相关视频 diff --git a/docs/zh_CN/hat/hat-dac.md b/docs/zh_CN/hat/hat-dac.md index c3a2129e..84831144 100644 --- a/docs/zh_CN/hat/hat-dac.md +++ b/docs/zh_CN/hat/hat-dac.md @@ -1,14 +1,11 @@ -# DAC HAT {docsify-ignore-all} - - - +# DAC HAT +
## 描述 **DAC Hat**是一款兼容M5SticKC的DA转换模块,内部集成DAC转换芯片MCP4725,具备低功耗,高精度,单通道,12位缓冲电压输出数模转换器(DAC),非易失性存储器(EEPROM).其片上精密输出放大器使其能够达到轨到轨模拟输出摆幅.用户可以使用I2C接口命令将DAC输入和配置烧写到非易失性存储器(EEPROM)中,使得DAC在断电期间仍能保持代码,上电后即可直接使用,I2C地址为0x60. - ## 产品特性 - 输出电压: 0-3.3V @@ -30,11 +27,6 @@ - 1x DAC HAT -## 尺寸重量 - -- 包装尺寸:40mm x 42mm x 30mm -- 包装重量:14g - ## 应用 - 设定点或失调微调 @@ -44,12 +36,10 @@ - PC外设 - 数据采集系统 - ## 原理图 - ## EasyLoader @@ -68,19 +58,16 @@ -### Arduino IDE +- **Arduino IDE** -[点击此处](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/DAC),获取完整程序. +[点击此处](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/DAC)获取完整程序. ## 相关链接 - **Datasheet** - [MCP4725](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/MCP4725_en.pdf) - ## 相关视频 -**Demo** - @@ -89,7 +76,6 @@ var purchase_link = 'https://m5stack.com/collections/m5-unit/products/m5stickc-env-hat'; - anchor_search(purchase_link); scrollFunc(); diff --git a/docs/zh_CN/hat/hat-env.md b/docs/zh_CN/hat/hat-env.md index 08f74f20..260aaf82 100644 --- a/docs/zh_CN/hat/hat-env.md +++ b/docs/zh_CN/hat/hat-env.md @@ -1,7 +1,6 @@ -# ENV HAT {docsify-ignore-all} - - +# ENV HAT +
## 描述 @@ -20,11 +19,6 @@ - ±1300μT(x,y轴),±2500μT(z轴) - 磁场分辨率约为0.3μT -## 重量尺寸 - -- 单品尺寸:24mm x 20.3mm x 13.8mm -- 单品重量:3g - ## 包含 - 1x ENV Hat @@ -84,7 +78,7 @@ -### Arduino IDE +- **Arduino IDE** [点击此处](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/ENV),获取完整程序. diff --git a/docs/zh_CN/hat/hat-finger.md b/docs/zh_CN/hat/hat-finger.md index a059189e..06122714 100644 --- a/docs/zh_CN/hat/hat-finger.md +++ b/docs/zh_CN/hat/hat-finger.md @@ -1,7 +1,6 @@ -# FINGER HAT {docsify-ignore-all} - - +# FINGER HAT +
## 描述 @@ -14,7 +13,6 @@ UART 参数设置: - 停止位(1 bit) - 校验位(无) - ## 产品特性 - 指纹容量: 150 @@ -30,9 +28,6 @@ UART 参数设置: - 通讯波特率: 9600-115200(默认为19200) - 工作温度: -10° - 60° - 相对湿度: 20% - 80% - -## 重量尺寸 - - 尺寸:24mm * 65mm * 20mm - 重量:12g @@ -46,12 +41,10 @@ UART 参数设置: - 替代密码认证 - 身份识别 - ## 原理图 - ## EasyLoader @@ -81,7 +74,6 @@ UART 参数设置: - 数据手册 **[FPC1020A](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/1020A_datasheet_cn.pdf)** ## 相关视频 -**Demo**