diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css index dd689578..b15a0f73 100644 --- a/docs/assets/css/main.css +++ b/docs/assets/css/main.css @@ -523,7 +523,7 @@ div.card-img-overlay:hover { } .fl-table td, .fl-table th { - text-align: center; + text-align: center !important; padding: 8px; } @@ -555,14 +555,14 @@ div.card-img-overlay:hover { width: 100%; overflow-x: auto; } - .table-wrapper:before{ + /* .table-wrapper:before{ content: "Scroll horizontally >"; display: block; text-align: right; font-size: 11px; color: white; padding: 0 0 10px; - } + } */ .fl-table thead, .fl-table tbody, .fl-table thead th { display: block; } diff --git a/docs/assets/img/product_pics/hat/beetlec_hat/beetlec_hat_01.jpg b/docs/assets/img/product_pics/hat/beetlec_hat/beetlec_hat_01.jpg index 9720a59c..1528a5c2 100644 Binary files a/docs/assets/img/product_pics/hat/beetlec_hat/beetlec_hat_01.jpg and b/docs/assets/img/product_pics/hat/beetlec_hat/beetlec_hat_01.jpg differ diff --git a/docs/assets/img/product_pics/hat/proto_plus_hat/hat_proto_plus_01.jpg b/docs/assets/img/product_pics/hat/proto_plus_hat/hat_proto_plus_01.jpg new file mode 100644 index 00000000..f061ee49 Binary files /dev/null and b/docs/assets/img/product_pics/hat/proto_plus_hat/hat_proto_plus_01.jpg differ diff --git a/docs/assets/img/product_pics/hat/proto_plus_hat/hat_proto_plus_02.jpg b/docs/assets/img/product_pics/hat/proto_plus_hat/hat_proto_plus_02.jpg new file mode 100644 index 00000000..17738815 Binary files /dev/null and b/docs/assets/img/product_pics/hat/proto_plus_hat/hat_proto_plus_02.jpg differ diff --git a/docs/assets/img/product_pics/hat/proto_plus_hat/hat_proto_plus_03.jpg b/docs/assets/img/product_pics/hat/proto_plus_hat/hat_proto_plus_03.jpg new file mode 100644 index 00000000..8a145049 Binary files /dev/null and b/docs/assets/img/product_pics/hat/proto_plus_hat/hat_proto_plus_03.jpg differ diff --git a/docs/en/hat/hat-beetlec.md b/docs/en/hat/hat-beetlec.md index 7acd7c01..7996eb09 100644 --- a/docs/en/hat/hat-beetlec.md +++ b/docs/en/hat/hat-beetlec.md @@ -30,10 +30,10 @@ Besides, a power switch is placed at the front. ## Weight and Size -- Size: 70mm*50mm*32mm +- Size: 70mm * 50mm * 25mm - Front-wheel diameter:⌀25mm -- Back-wheel diameter:⌀14mm -- Package weight:89g +- Back-wheel diameter:⌀14mm +- Package weight:102g ## Applications diff --git a/docs/en/hat/hat-proto-plus.md b/docs/en/hat/hat-proto-plus.md index 5af79619..ff00ecb4 100644 --- a/docs/en/hat/hat-proto-plus.md +++ b/docs/en/hat/hat-proto-plus.md @@ -1,7 +1,6 @@ # M5StickC PROTO PLUS HAT {docsify-ignore-all} - - + *** @@ -12,6 +11,8 @@ **PROTO PLUS HAT** is a universal board compatible with M5SticKC. Compared to the previous generation PROTO HAT, "PLUS" is designed to provide a larger board area. Combined with the matching 8 pin header, the M5StickC top can be placed. The expansion interface is fully connected to the universal board, allowing the user to freely design the circuit on the board. The 90° pin header enables the universal board to be spliced with the M5StickC at various angles. If you plan to add simple to your project The circuit design and hope to achieve space saving by changing the way the board is spliced, HAT PROTO PLUS will be a good choice. + + ## Product Features - M5StickC Compatible @@ -28,23 +29,6 @@ - Prototyping - - - - ## Video **Demo** @@ -54,5 +38,46 @@ +## 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(); +} +``` + + diff --git a/docs/index.md b/docs/index.md index 45eb7e22..fabf7b9b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -829,6 +829,12 @@ + **LED class** diff --git a/docs/zh_CN/README.md b/docs/zh_CN/README.md index 2e819085..58eb3b66 100644 --- a/docs/zh_CN/README.md +++ b/docs/zh_CN/README.md @@ -830,7 +830,14 @@

BeetleC

- + + + **LED类** diff --git a/docs/zh_CN/api.md b/docs/zh_CN/api.md index 1c6a94ff..216f6205 100644 --- a/docs/zh_CN/api.md +++ b/docs/zh_CN/api.md @@ -45,9 +45,7 @@ - - + *** @@ -8,15 +8,17 @@ ## 描述 -**PROTO PLUS HAT** 是一款兼容M5SticKC的万能板.相比前代产品PROTO HAT,"PLUS"在设计上提供了更大的电路板面积.结合配套的8 pin 排针能够将M5StickC顶部的拓展接口全部连接至万能板内,使得用户可以自由的在板上进行电路设计. 90°形状的排针能够使万能板以多种角度与M5StickC进行拼接.如果你打算为你的项目添加简单的电路设计并希望通过改变电路板的拼接方式以达到节省空间的目的, HAT PROTO PLUS 会是一个不错的选择. +**PROTO PLUS HAT** 是一款兼容M5SticKC的万能板.相比前代产品PROTO HAT,"PLUS"在设计上提供了更大的电路板面积. 结合配套的8 pin 排针能够将M5StickC顶部的拓展接口全部连接至万能板内,使得用户可以自由的在板上进行电路设计. 90°形状的排针能够使万能板以多种角度与M5StickC进行拼接.如果你打算为你的项目添加简单的电路设计并希望通过改变电路板的拼接方式以达到节省空间的目的, HAT PROTO PLUS 会是一个不错的选择. + + ## 产品特性 - 兼容M5StickC - 孔尺寸: 0.039" 1mm (CNC工艺) - 孔间距: 0.1 in - (2.54 mm) -- 板孔数量: 168 Holes +- 板孔数量: 168 孔 ## 重量尺寸 @@ -33,25 +35,50 @@ - 电路原型设计 - ## 相关视频 \ No newline at end of file + + +## 例程 + +*以下代码仅为片段,如需获取完整代码,[请点击此处.](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