Merge branch 'master' of github.com:m5stack/m5-docs

This commit is contained in:
ali-admin
2020-12-08 16:54:59 +08:00
11 changed files with 31 additions and 141 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

+2
View File
@@ -140,6 +140,8 @@ typedef enum // Typical
>The refresh quality is relatively good for `UPDATE_MODE_GC16`, `UPDATE_MODE_GL16` , `UPDATE_MODE_GLR16` , `UPDATE_MODE_GLD16`.
?>The ink screen adopted by M5Paper supports 16-level grayscale display. The effective input range of the `color` parameter in the API below is `0~15`
## Canvas API
- **Function: Fill Draw Area**
+6 -5
View File
@@ -167,11 +167,12 @@ Screen Resolution200x200
**Multi-function button & Physical Button & LED & Buzzer**
<table>
<tr><td>ESP32 Chip</td><td>GPIO37</td><td>GPIO38</td><td>GPIO39</td><td>GPIO5</td><td>GPIO10</td><td>GPIO2</td></tr>
<tr><td>Multi-function button</td><td>Left position</td><td>Button press</td><td>Right position</td><td>/</td><td>/</td><td>/</td></tr>
<tr><td>Physical Button</td><td>/</td><td>/</td><td>/</td><td>Physical Button</td><td>/</td><td>/</td></tr>
<tr><td>LED</td><td>/</td><td>/</td><td>/</td><td>/</td><td>LED</td><td>/</td></tr>
<tr><td>Buzzer</td><td>/</td><td>/</td><td>/</td><td>/</td><td>/</td><td>Buzzer</td></tr>
<tr><td>ESP32 Chip</td><td>GPIO37</td><td>GPIO38</td><td>GPIO39</td><td>GPIO5</td><td>GPIO10</td><td>GPIO2</td><td>GPI12</td></tr>
<tr><td>Multi-function button</td><td>Left position</td><td>Button press</td><td>Right position</td><td>/</td><td>/</td><td>/</td><td>/</td></tr>
<tr><td>Physical Button</td><td>/</td><td>/</td><td>/</td><td>Physical Button</td><td>/</td><td>/</td><td>/</td></tr>
<tr><td>LED</td><td>/</td><td>/</td><td>/</td><td>/</td><td>LED</td><td>/</td><td>/</td></tr>
<tr><td>Buzzer</td><td>/</td><td>/</td><td>/</td><td>/</td><td>/</td><td>Buzzer</td><td>/</td></tr>
<tr><td>Power Control</td><td>/</td><td>/</td><td>/</td><td>/</td><td>/</td><td>/</td><td>MOS</td></tr>
</table>
**USB Serial**
+4 -3
View File
@@ -138,11 +138,12 @@ Resolution540*960
</table>
**Multi-function button**
**Multi-function button & PWR**
<table>
<tr><td>ESP32 Chip</td><td>GPIO37</td><td>GPIO38</td><td>GPIO39</td></tr>
<tr><td>Multi-function button</td><td>Right</td><td>BTN/PWR</td><td>Left</td></tr>
<tr><td>ESP32 Chip</td><td>GPIO37</td><td>GPIO38</td><td>GPIO39</td><td>GPIO2</td></tr>
<tr><td>Multi-function button</td><td>Right</td><td>BTN/PWR</td><td>Left</td><td>/</td></tr>
<tr><td>Power Control</td><td>/</td><td>/</td><td>/</td><td>MOS</td></tr>
</table>
@@ -124,62 +124,11 @@
<img src="assets/img/quick_start/core2/uiflow_use.gif">
<!---
## UIFlow Desktop IDE
>When programming with the offline version of UIFlow, you need to configure the device to `USB mode`. (1. Start the device 2. Click the UIFlow option. 3 Select the USB mode)
> UIFlow Desktop IDE is an offline version of UIFlow programmer which does not require network connection, and can provide you with responsive program push experience. Please click the corresponding version of **UIFlow-Desktop-IDE** to download according to your operating system .
<div class="files_download">
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/UIFlow-Desktop-IDE.zip">
<img src="/image/base/Windows_logo.webp" width="50">
<span class="item-title">Windows10</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/UIFlow-Desktop-IDE_MacOS.zip">
<img src="/image/base/MacOS_logo.webp" width="50">
<span class="item-title">MacOS</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/UIFlow-Desktop-IDE_Linux.zip">
<img src="/image/base/Linux_logo.webp" width="50">
<span class="item-title">Linux</span>
</a>
</p>
</div>
#### USB programming mode
> Unzip the downloaded UIFlow Desktop IDE archive and double-click to run the application.
<img src="assets/img/quick_start/core2/IDE1.jpg">
?> After the app starts, it will automatically detect whether your computer has a USB driver (CP210X), click Install, and follow the prompts to finish installation.
<img src="assets/img/quick_start/core2/IDE2.jpg">
> After the driver installation is complete, it will automatically enter the UIFlow Desktop IDE and automatically pop up the configuration box. At this time, connect the M5 device to the computer through the Tpye-C data cable.
<img src="assets/img/quick_start/core2/usb_connect.jpg">
!> Using UIFlow Desktop IDE requires M5 device with UIFlow firmware and enter ** USB programming mode **.
> Click the power button on the left side of the device to restart, after entering the menu, quickly click the right button to select **USB mode**.
<img src="assets/img/quick_start/core2/usb_mode.jpg">
> Select the corresponding port, and the programming device, click OK to connect.
<img src="assets/img/quick_start/core2/desktop.jpg">
--->
<img src="assets\img\quick_start\core2\core_usb_mode.webp">
## Related Links
+2
View File
@@ -141,6 +141,8 @@ typedef enum // Typical
>刷新质量较为好的几种分别为`UPDATE_MODE_GC16`,`UPDATE_MODE_GL16` , `UPDATE_MODE_GLR16` , `UPDATE_MODE_GLD16`
?>M5Paper采用的墨水屏,支持16级灰度显示,在下方API中`color`参数的有效传入范围为`0~15`
## 常用API
- **功能:填充绘制区域**
+6 -5
View File
@@ -166,11 +166,12 @@
**拨轮开关 & 物理按键 & LED & 蜂鸣器**
<table>
<tr><td>ESP32 Chip</td><td>GPIO37</td><td>GPIO38</td><td>GPIO39</td><td>GPIO5</td><td>GPIO10</td><td>GPIO2</td></tr>
<tr><td>拨轮开关</td><td>右</td><td>中</td><td>左</td><td>/</td><td>/</td><td>/</td></tr>
<tr><td>物理按键</td><td>/</td><td>/</td><td>/</td><td>物理按键</td><td>/</td><td>/</td></tr>
<tr><td>LED</td><td>/</td><td>/</td><td>/</td><td>/</td><td>LED</td><td>/</td></tr>
<tr><td>蜂鸣器</td><td>/</td><td>/</td><td>/</td><td>/</td><td>/</td><td>蜂鸣器</td></tr>
<tr><td>ESP32 Chip</td><td>GPIO37</td><td>GPIO38</td><td>GPIO39</td><td>GPIO5</td><td>GPIO10</td><td>GPIO2</td><td>GPI12</td></tr>
<tr><td>拨轮开关</td><td>右</td><td>中</td><td>左</td><td>/</td><td>/</td><td>/</td><td>/</td></tr>
<tr><td>物理按键</td><td>/</td><td>/</td><td>/</td><td>物理按键</td><td>/</td><td>/</td><td>/</td></tr>
<tr><td>LED</td><td>/</td><td>/</td><td>/</td><td>/</td><td>LED</td><td>/</td><td>/</td></tr>
<tr><td>蜂鸣器</td><td>/</td><td>/</td><td>/</td><td>/</td><td>/</td><td>蜂鸣器</td><td>/</td></tr>
<tr><td>电源控制</td><td>/</td><td>/</td><td>/</td><td>/</td><td>/</td><td>/</td><td>MOS</td></tr>
</table>
**USB转串口下载**
+3 -2
View File
@@ -140,8 +140,9 @@
**拨轮开关**
<table>
<tr><td>ESP32 Chip</td><td>GPIO37</td><td>GPIO38</td><td>GPIO39</td></tr>
<tr><td>拨轮开关</td><td>右</td><td>中按钮/电源按钮</td><td>左</td></tr>
<tr><td>ESP32 Chip</td><td>GPIO37</td><td>GPIO38</td><td>GPIO39</td><td>GPIO2</td></tr>
<tr><td>拨轮开关</td><td>右</td><td>中按钮/电源按钮</td><td>左</td><td>/</td></tr>
<tr><td>电源控制</td><td>/</td><td>/</td><td>/</td><td>MOS</td></tr>
</table>
@@ -113,7 +113,7 @@
?>注意:配置的WiFi信息中,不允许出现"空格"等特殊字符。
<img src="assets\img\getting_started_pics\m5stack_core\get_started_with_uiflow\uiflow_wifi_setup2.webp">
## 网络编程模式与API KEY
@@ -138,83 +138,16 @@
<img src="assets/img/quick_start/core2/uiflow_use.gif">
<!---
## UIFlow Desktop IDE
>当使用离线版UIFlow进行编程时,需要将设备配置为`USB模式`。(1. 启动设备 2. 点击UIFlow选项 .3 选择USB模式
>UIFlow Desktop IDE是一个离线版的UIFlow编程器,无需网络依赖,且能够提供反应迅速程序推送体验,请根据您的操作系统,点击下方按钮对应版本的 **UIFlow-Desktop-IDE** 进行下载.
<div class="files_download">
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/UIFlow-Desktop-IDE.zip">
<img src="/image/base/Windows_logo.webp" width="50">
<span class="item-title">Windows10</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/UIFlow-Desktop-IDE_MacOS.zip">
<img src="/image/base/MacOS_logo.webp" width="50">
<span class="item-title">MacOS</span>
</a>
</p>
<p class="item">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/UIFlow-Desktop-IDE_Linux.zip">
<img src="/image/base/Linux_logo.webp" width="50">
<span class="item-title">Linux</span>
</a>
</p>
</div>
#### USB编程模式
>将下载好的UIFlow Desktop IDE压缩包解压,双击执行应用程序.
<img src="assets/img/related_documents/UIFlow_Desktop_IDE/Desktop_IDE_01.webp">
?>软件启动后,将自动检测你的电脑是否安装有USB驱动(CP210X),点击Install,根据提示,进行安装.
<img src="assets/img/related_documents/UIFlow_Desktop_IDE/Desktop_IDE_02.webp">
>驱动安装完成后,将自动进入UIFlow Desktop IDE并自动弹出配置框,此时将M5设备通过Tpye-C数据线连接至电脑.
<img src="assets\img\quick_start\core\core_usb_connect.webp">
?>使用UIFlow Desktop IDE需要M5设备搭载UIFlow固件且进入**USB编程模式**.
>单击设备左侧电源键重启,进入菜单后快速选择Setup,进入配置页面,选择**USB mode**.
<img src="assets\img\quick_start\core\core_usb_mode.webp">
>选择好对应的端口,与编程设备,点击OK进行连接.
<img src="assets/img/related_documents/UIFlow_Desktop_IDE/Desktop_IDE_05.webp">
--->
## 相关视频
- UIFlow 的简介
<video width="500" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/LukeVideo/UI%20Flow%20Overview.mp4" type="video/mp4">
</video>
- UIFlow 中开发 M5Core 的视频教程
<video width="500" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/%E6%95%99%E7%A8%8B/UIFlow%20Tutorials/A3%20-%20UIflow%E7%AE%80%E4%BB%8B.mp4" type="video/mp4">
</video>
<img src="assets\img\quick_start\core2\core_usb_mode.webp">
## 相关链接
* [M5GO编程入门教程](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/UIFlow-Book-zh_cn.pdf)
* [UIFlow Block介绍](zh_CN/uiflow/uiflow_home_page)
- [UIFlow Block介绍](zh_CN/uiflow/uiflow_home_page)
<script>
anchor_search();