diff --git a/docs/assets/css/loading.css b/docs/assets/css/loading.css new file mode 100644 index 00000000..a055307d --- /dev/null +++ b/docs/assets/css/loading.css @@ -0,0 +1,83 @@ +#loading { + position:fixed; + left:0; + top:0; + width:100%; + height:100%; +} +.demo3 { + width: 4px; + height: 4px; + border-radius: 2px; + background: #007bff; + position: absolute; + animation: demo3 linear 0.8s infinite; + -webkit-animation: demo3 linear 0.8s infinite; +} +.demo3:nth-child(1){ + left: 24px; + top: 2px; + animation-delay:0s; +} +.demo3:nth-child(2){ + left: 40px; + top: 8px; + animation-delay:0.1s; +} +.demo3:nth-child(3){ + left: 47px; + top: 24px; + animation-delay:0.1s; +} +.demo3:nth-child(4){ + left: 40px; + top: 40px; + animation-delay:0.2s; +} +.demo3:nth-child(5){ + left: 24px; + top: 47px; + animation-delay:0.4s; +} +.demo3:nth-child(6){ + left: 8px; + top: 40px; + animation-delay:0.5s; +} +.demo3:nth-child(7){ + left: 2px; + top: 24px; + animation-delay:0.6s; +} +.demo3:nth-child(8){ + left: 8px; + top: 8px; + animation-delay:0.7s; +} + +@keyframes demo3 +{ + 0%,40%,100% {transform: scale(1);} + 20% {transform: scale(3);} +} +@-webkit-keyframes demo3 +{ + 0%,40%,100% {transform: scale(1);} + 20% {transform: scale(3);} +} + + +.loading-flex { + position:absolute; + top:45%; + left:50%; +} + + +@media screen and (max-width: 768px){ + .loading-flex { + position:absolute; + top:45%; + left:45%; + } +} \ No newline at end of file diff --git a/docs/assets/img/product_pics/accessory/485t/485t_01.jpg b/docs/assets/img/product_pics/accessory/485t/485t_01.jpg new file mode 100644 index 00000000..68a151c5 Binary files /dev/null and b/docs/assets/img/product_pics/accessory/485t/485t_01.jpg differ diff --git a/docs/assets/img/product_pics/accessory/485t/485t_02.jpg b/docs/assets/img/product_pics/accessory/485t/485t_02.jpg new file mode 100644 index 00000000..bc86b364 Binary files /dev/null and b/docs/assets/img/product_pics/accessory/485t/485t_02.jpg differ diff --git a/docs/assets/img/product_pics/accessory/485t/485t_03.jpg b/docs/assets/img/product_pics/accessory/485t/485t_03.jpg new file mode 100644 index 00000000..16ed9e07 Binary files /dev/null and b/docs/assets/img/product_pics/accessory/485t/485t_03.jpg differ diff --git a/docs/assets/img/product_pics/accessory/485t/485t_04.jpg b/docs/assets/img/product_pics/accessory/485t/485t_04.jpg new file mode 100644 index 00000000..3bb87063 Binary files /dev/null and b/docs/assets/img/product_pics/accessory/485t/485t_04.jpg differ diff --git a/docs/assets/img/product_pics/app/butterfly/1.jpg b/docs/assets/img/product_pics/app/butterfly/1.jpg new file mode 100644 index 00000000..02c6d62a Binary files /dev/null and b/docs/assets/img/product_pics/app/butterfly/1.jpg differ diff --git a/docs/assets/img/product_pics/app/butterfly/2.jpg b/docs/assets/img/product_pics/app/butterfly/2.jpg new file mode 100644 index 00000000..d0b40648 Binary files /dev/null and b/docs/assets/img/product_pics/app/butterfly/2.jpg differ diff --git a/docs/assets/img/product_pics/app/butterfly/3.jpg b/docs/assets/img/product_pics/app/butterfly/3.jpg new file mode 100644 index 00000000..f10f74cb Binary files /dev/null and b/docs/assets/img/product_pics/app/butterfly/3.jpg differ diff --git a/docs/assets/img/product_pics/app/butterfly/4.jpg b/docs/assets/img/product_pics/app/butterfly/4.jpg new file mode 100644 index 00000000..b7adffcb Binary files /dev/null and b/docs/assets/img/product_pics/app/butterfly/4.jpg differ diff --git a/docs/assets/img/product_pics/app/butterfly/butterfly_01.jpg b/docs/assets/img/product_pics/app/butterfly/butterfly_01.jpg new file mode 100644 index 00000000..07f61680 Binary files /dev/null and b/docs/assets/img/product_pics/app/butterfly/butterfly_01.jpg differ diff --git a/docs/assets/img/product_pics/app/butterfly/butterfly_02.jpg b/docs/assets/img/product_pics/app/butterfly/butterfly_02.jpg new file mode 100644 index 00000000..852818ea Binary files /dev/null and b/docs/assets/img/product_pics/app/butterfly/butterfly_02.jpg differ diff --git a/docs/assets/img/product_pics/app/butterfly/butterfly_03.jpg b/docs/assets/img/product_pics/app/butterfly/butterfly_03.jpg new file mode 100644 index 00000000..dac29d5d Binary files /dev/null and b/docs/assets/img/product_pics/app/butterfly/butterfly_03.jpg differ diff --git a/docs/assets/img/product_pics/app/butterfly/butterfly_04.jpg b/docs/assets/img/product_pics/app/butterfly/butterfly_04.jpg new file mode 100644 index 00000000..e4b63dc3 Binary files /dev/null and b/docs/assets/img/product_pics/app/butterfly/butterfly_04.jpg differ diff --git a/docs/assets/img/product_pics/app/butterfly/butterfly_05.jpg b/docs/assets/img/product_pics/app/butterfly/butterfly_05.jpg new file mode 100644 index 00000000..cf9468e5 Binary files /dev/null and b/docs/assets/img/product_pics/app/butterfly/butterfly_05.jpg differ diff --git a/docs/index.html b/docs/index.html index 03530186..0c76b488 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,6 +10,23 @@ M5Stack - A series of modular stackable development devices + + + diff --git a/docs/index.md b/docs/index.md index a1b59f71..9dd92e44 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1017,7 +1017,7 @@
- +

BUTTERFLY

@@ -1136,12 +1136,12 @@ - + *** diff --git a/docs/zh_CN/README.md b/docs/zh_CN/README.md index 1ef7ee85..a8c91e25 100644 --- a/docs/zh_CN/README.md +++ b/docs/zh_CN/README.md @@ -904,7 +904,7 @@
- +

BUTTERFLY

@@ -1039,12 +1039,12 @@ - + *** diff --git a/docs/zh_CN/accessory/485t.md b/docs/zh_CN/accessory/485t.md index 0597440a..8b52736f 100644 --- a/docs/zh_CN/accessory/485t.md +++ b/docs/zh_CN/accessory/485t.md @@ -1,10 +1,10 @@ # 485T {docsify-ignore-all} - + - +:memo:**[描述](#描述)**       -:memo:**[描述](#描述)**      🛒**[购买链接](https://m5stack.com/collections/m5-accessory/products/frame-panel-extended-install-components)** + ## 描述 @@ -18,12 +18,8 @@ - 接口类型:4 Pin 3.96mm 接线端子 - 内置电源指示灯:红色 +frame_03 frame_04 + ## 套件清单 -- 1x 485T - -## 相关链接 - -frame_03 - -frame_04 +- 1x 485T \ No newline at end of file diff --git a/docs/zh_CN/unit/butterfly.md b/docs/zh_CN/unit/butterfly.md index 77061e52..cd0f496d 100644 --- a/docs/zh_CN/unit/butterfly.md +++ b/docs/zh_CN/unit/butterfly.md @@ -1,6 +1,6 @@ -# Unit BUTTERFLY {docsify-ignore-all} +# Butterfly Launcher {docsify-ignore-all} - + *** @@ -8,38 +8,51 @@ ## 描述 -**BUTTERFLY** 是一个蝴蝶模型发射器,它能够向空中发射蝴蝶模型.发射器由一个 Servo 舵机和一个亚克力底座构成.蝴蝶模型每一次发射需要提前装配,将蝴蝶模型头部进行旋转,并将橡皮筋的另一端固定在发射器的底部.通过M5Core就能控制发射器的舵机旋转,进而控制蝴蝶的发射.这样一个有着动态效果的模型发射装置,你可以将它用作时装设计的装饰品. +**Butterfly Launcher** 是一个酷炫的蝴蝶模型发射器,相比旧版本的发射器,新版配备了MEGA328微处理器、锂电池组件、18个彩色LED灯,以及提供了两个拓展端口(分别用于电源,串口通信). 实际使用时能够同时串联多个设备,并独立控制它们. - +串行通信机制:将多个设备进行串联,为了准确的向某个设备发送指令,我们在代码中附加"id"变量,当指令通过控制器串行传输到设备时,每经过一个设备,变量都将进行减一操作,读取到变量为0的设备则执行命令. - +因此,1,我们能够独立控制串行设备中的任意一个,并单独设置它们的LED颜色,闪烁模式,亮度和伺服状态. + +2,如同下方视频所示,在LED灯演示时,存在着一定的延迟,假设每个设备有100ms的延迟,并且我们总共有10个,则最后一个设备将有1s的延迟时间.为了优化这种延迟,我们可以对第一个设备进行编程以等待最后一个设备(由于协议的特性,延迟的产生是无法避免的) ## 产品特性 -- GROVE 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc). +- 可串接拓展 +- 18xRGB LED +- UART串行通信 +- 支持 [UIFlow](http://flow.m5stack.com)(Blockly/图形化语言) +- 电池容量:120mA -## 步骤 -1, 下载这个[应用案例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/BUTTERFLY/UIFlow) ,并上传到至M5Core. -2, M5Core使用GROVE线,经过GROVE2Pin转换器,与发射装置的舵机连接起来. + - - +## 套件清单 -"发射蝴蝶",编程发射装置舵机旋转**30°** +- BUTTERFLY发射器 +- 纸蝴蝶模型 +- CONNEXT连接线 +- 橡皮筋 -"锁定蝴蝶",编程发射装置舵机旋转**0°** - +## 应用 - +- 时尚科技 +- STEM教育 - + - -> +关于控制程序,我们在UIFLow上封装了一个特别的程序块, 这使得您能够简单地编写控制程序.下面将向您展示如何在UIFlow上添加程序块. + +>1,导航到"自定义",单击"打开"* m5d + + + +>2,选择butterfly.m5d + + + +>3,展开Custom选项,选择蝴蝶程序块. + +