From c560048bd052ca08930fb4eb330b2e12db4a178f Mon Sep 17 00:00:00 2001 From: shaoxiang <1026025056@qq.com> Date: Wed, 28 Aug 2019 14:28:11 +0800 Subject: [PATCH] fix vibrator-motor pic --- .../unit/{Fan => fan}/unit_fan_01.jpg | Bin .../unit/{Fan => fan}/unit_fan_02.jpg | Bin .../unit/{Fan => fan}/unit_fan_03.jpg | Bin .../unit/{Fan => fan}/unit_fan_04.jpg | Bin docs/en/hat/hat-neoflash.md | 89 +++++++++++------- docs/en/unit/vibrator.md | 1 + docs/zh_CN/hat/hat-neoflash.md | 14 +-- docs/zh_CN/unit/vibrator.md | 2 +- 8 files changed, 60 insertions(+), 46 deletions(-) rename docs/assets/img/product_pics/unit/{Fan => fan}/unit_fan_01.jpg (100%) rename docs/assets/img/product_pics/unit/{Fan => fan}/unit_fan_02.jpg (100%) rename docs/assets/img/product_pics/unit/{Fan => fan}/unit_fan_03.jpg (100%) rename docs/assets/img/product_pics/unit/{Fan => fan}/unit_fan_04.jpg (100%) diff --git a/docs/assets/img/product_pics/unit/Fan/unit_fan_01.jpg b/docs/assets/img/product_pics/unit/fan/unit_fan_01.jpg similarity index 100% rename from docs/assets/img/product_pics/unit/Fan/unit_fan_01.jpg rename to docs/assets/img/product_pics/unit/fan/unit_fan_01.jpg diff --git a/docs/assets/img/product_pics/unit/Fan/unit_fan_02.jpg b/docs/assets/img/product_pics/unit/fan/unit_fan_02.jpg similarity index 100% rename from docs/assets/img/product_pics/unit/Fan/unit_fan_02.jpg rename to docs/assets/img/product_pics/unit/fan/unit_fan_02.jpg diff --git a/docs/assets/img/product_pics/unit/Fan/unit_fan_03.jpg b/docs/assets/img/product_pics/unit/fan/unit_fan_03.jpg similarity index 100% rename from docs/assets/img/product_pics/unit/Fan/unit_fan_03.jpg rename to docs/assets/img/product_pics/unit/fan/unit_fan_03.jpg diff --git a/docs/assets/img/product_pics/unit/Fan/unit_fan_04.jpg b/docs/assets/img/product_pics/unit/fan/unit_fan_04.jpg similarity index 100% rename from docs/assets/img/product_pics/unit/Fan/unit_fan_04.jpg rename to docs/assets/img/product_pics/unit/fan/unit_fan_04.jpg diff --git a/docs/en/hat/hat-neoflash.md b/docs/en/hat/hat-neoflash.md index 18c0365b..9861cac9 100644 --- a/docs/en/hat/hat-neoflash.md +++ b/docs/en/hat/hat-neoflash.md @@ -4,62 +4,83 @@ *** -:memo:**[描述](#描述)**     🛒**[购买链接](https://m5stack.com/products/m5stickc-proto-plus-hat)**  +:memo:**[Description](#Description)**    🛒**[Purchase](https://m5stack.com/products/m5stickc-proto-plus-hat)** +## Description -## 描述 - -**Neoflash HAT** 是一款专为M5SticKC设计的矩阵RGB LED灯板.这块尺寸面积仅有pass*pass的PCB板总共嵌入了126颗RGB LED灯,除了支持一般的灯光效果以外,还可以作为一个小型点阵显示屏使用. - - - -附赠的黑茶色亚克力板,能够加强灯光的效果.90°弯曲排针能够使灯板以多种角度与M5StickC进行拼接 - - - - -相比前代产品PROTO HAT,"PLUS"在设计上提供了更大的电路板面积. 结合配套的8 pin 排针能够将M5StickC顶部的拓展接口全部连接至万能板内,使得用户可以自由的在板上进行电路设计. 90°形状的排针能够使万能板以多种角度与M5StickC进行拼接.如果你打算为你的项目添加简单的电路设计并希望通过改变电路板的拼接方式以达到节省空间的目的, HAT PROTO PLUS 会是一个不错的选择. +**Neoflash HAT** is -## 产品特性 +## Product Features -- 孔尺寸: 0.039" 1mm (CNC工艺) -- 孔间距: 0.1 in - (2.54 mm) -- RGB LED数量: 126 个 +- Hole Size: 0.039" 1mm (CNC Drilled) +- Hole Pitch: 0.1 in - (2.54 mm) +- Entire Hole Quantity: 168 Holes -## 重量尺寸 +## Include -- 单品尺寸:54mm x 23.5mm x 1mm -- 单品重量:2g +- 1x PROTO PLUS HAT +- 1x 8 pin header(90°) -## 包含 +## Application -- 1x Neoflash HAT -- 2x 8 pin 排针(90°) -- 1x 黑茶色亚克力板 -- 2x 15cm导线(71号、0.4mm) - -## 应用 - -- 电路原型设计 -- 相关应用: [点击查看](https://www.hackster.io/kiraku-labo/balance-robot-9009db) +- Prototyping +- Related work by M5 User: [view](https://www.hackster.io/kiraku-labo/balance-robot-9009db) -## 相关视频 +## Video + +**Demo** -## 例程 -*以下代码仅为片段,如需获取完整代码,[请点击此处.](https://github.com/ShashaDDD/EC11Encoder).* +## Code + +*To get complete code, please click [here](https://github.com/ShashaDDD/EC11Encoder).* ```arduino #include +#include +#include +#include "RotaryEncoderWithButton.h" + + +//#include + +//RotaryEncoderWithButton rotary(2,3,4); +RotaryEncoderWithButton rotary(26,36,0); + +uint32_t data; +int i; +void t1Callback(); +Task t1(5, TASK_FOREVER, &RotaryEncoderWithButton::ReadAB); +Scheduler runner; + +void setup() { + M5.begin(); + Serial.begin(115200); + rotary.begin(); + + runner.init(); + runner.addTask(t1); + + delay(100); + t1.enable(); + +} + +void loop() { + runner.execute(); +} +``` + + + -``` \ No newline at end of file diff --git a/docs/en/unit/vibrator.md b/docs/en/unit/vibrator.md index 1a319a07..b9033f36 100644 --- a/docs/en/unit/vibrator.md +++ b/docs/en/unit/vibrator.md @@ -39,6 +39,7 @@ These days miniature vibrating motors are used in a wide range of products, not ## Schematic + diff --git a/docs/zh_CN/hat/hat-neoflash.md b/docs/zh_CN/hat/hat-neoflash.md index 18c0365b..6070667c 100644 --- a/docs/zh_CN/hat/hat-neoflash.md +++ b/docs/zh_CN/hat/hat-neoflash.md @@ -12,14 +12,7 @@ **Neoflash HAT** 是一款专为M5SticKC设计的矩阵RGB LED灯板.这块尺寸面积仅有pass*pass的PCB板总共嵌入了126颗RGB LED灯,除了支持一般的灯光效果以外,还可以作为一个小型点阵显示屏使用. - - -附赠的黑茶色亚克力板,能够加强灯光的效果.90°弯曲排针能够使灯板以多种角度与M5StickC进行拼接 - - - - -相比前代产品PROTO HAT,"PLUS"在设计上提供了更大的电路板面积. 结合配套的8 pin 排针能够将M5StickC顶部的拓展接口全部连接至万能板内,使得用户可以自由的在板上进行电路设计. 90°形状的排针能够使万能板以多种角度与M5StickC进行拼接.如果你打算为你的项目添加简单的电路设计并希望通过改变电路板的拼接方式以达到节省空间的目的, HAT PROTO PLUS 会是一个不错的选择. +附赠的黑茶色亚克力板,能够加强灯光的效果.90°弯曲排针能够使灯板以多种角度与M5StickC进行拼接.如果你打算为你的项目添加一个精致小巧的LED矩阵屏幕的话,Neoflash HAT 会是一个不错的选择. @@ -44,9 +37,8 @@ ## 应用 -- 电路原型设计 -- 相关应用: [点击查看](https://www.hackster.io/kiraku-labo/balance-robot-9009db) - +- LED矩阵显示屏 +- 数字时钟 ## 相关视频 diff --git a/docs/zh_CN/unit/vibrator.md b/docs/zh_CN/unit/vibrator.md index 1a7881b8..40f15f65 100644 --- a/docs/zh_CN/unit/vibrator.md +++ b/docs/zh_CN/unit/vibrator.md @@ -29,7 +29,7 @@ ## 原理图 - + ## EasyLoader