mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
update introduction
This commit is contained in:
+67
-221
@@ -1,13 +1,23 @@
|
||||
# Update firmware
|
||||
|
||||
><img src="/image/base/windows_logo.png" width="100" height="100">
|
||||
### For Windows
|
||||
1. [Flash UIFlow firmware](#Flash-UIFlow-firmware)
|
||||
|
||||
2. [Setup WIFI](#Setup-WIFI)
|
||||
|
||||
3. [Configure APIKey](#Configure-API-Key)
|
||||
|
||||
4. [UIFlow Quick Start](#UIFlow-Quick-Start)
|
||||
|
||||
|
||||
|
||||
# Flash UIFlow firmware
|
||||
|
||||
* __Downloading the driver__
|
||||
|
||||
>Go to[m5stack.com](http://m5stack.com/)and download the driver for your OS[CP210X driver](http://m5stack.com/download/Driver/CP210x_VCP_Windows.zip)
|
||||
><img src="/image/base/Windows_logo.png" width="50" height="50"> Go to [m5stack.com](http://m5stack.com/) and download Windows driver [CP210X Drivers](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/drivers/CP210x_VCP_Windows.zip)
|
||||
|
||||
><img src="/image/base/CP210X_DL.gif" width="50%">
|
||||
><img src="/image/base/MacOS_logo.png" width="50" height="50"> Go to [m5stack.com](http://m5stack.com/) and download MacOS driver [CP210X Drivers](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/drivers/CP210x_VCP_MacOS.zip)
|
||||
|
||||
><img src="/image/base/Linux_logo.png" width="50" height="50"> Go to [m5stack.com](http://m5stack.com/) and download Linux driver [CP210X Drivers](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/drivers/CP210x_VCP_Linux.zip)
|
||||
|
||||
* __Installing the driver__
|
||||
|
||||
@@ -18,7 +28,11 @@
|
||||
|
||||
* __Download M5Burner__
|
||||
|
||||
>Go to[flow.m5stack.com](http://flow.m5stack.com/)and click the gear in the top right corner. From the settings panel choose the M5burner for your system[M5Burner](https://m5stack.com/pages/download)
|
||||
><img src="/image/base/Windows_logo.png" width="50" height="50"> Go to [flow.m5stack.com](http://flow.m5stack.com/) and download the latest firmware and [M5Burner(Windows)](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/M5Burner.zip)
|
||||
|
||||
><img src="/image/base/MacOS_logo.png" width="50" height="50"> Go to [flow.m5stack.com](http://flow.m5stack.com/) and download the latest firmware and [M5Burner(MacOS)](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/M5Burner_MacOS.zip)
|
||||
|
||||
><img src="/image/base/Linux_logo.png" width="50" height="50"> Go to [flow.m5stack.com](http://flow.m5stack.com/) and download the latest firmware and [M5Burner(Linux)](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/M5Burner_Linux.zip)
|
||||
|
||||
><img src="/image/base/Burner_DL.png" width="50%">
|
||||
|
||||
@@ -28,22 +42,55 @@
|
||||
|
||||
><img src="/image/base/Burner_user.gif " width="50%">
|
||||
|
||||
# WIFI Setup
|
||||
|
||||
__UIFlow and M5GO are two seperate concepts,UiFlow is the platform we use to program M5GO and we need to connect the two before this is possible__
|
||||
#### Initiate device and setup WIFI
|
||||
# Setup WIFI
|
||||
|
||||
>Single press the red start button on the side of the M5GO, When the logo appears press the setup button quickly to enter the wi-fi setup menu. Select change wi-fi connect and then connect to the M5GO's access point with your computer or mobile device (The access point will look something like "M5Stack-xxxx")
|
||||
* __M5GO__
|
||||
|
||||
><img src="/image/base/1.png" width="50%">
|
||||
>__*1.4.5 version and above can be configured directly through M5Bunner__
|
||||
|
||||
>1.Single press the red start button on the side of the M5GO, When the logo appears press the button-A quickly to enter the WiFi setup menu.Select change wi-fi connect and then connect to the M5GO's access point with your computer or mobile device (The access point will look something like "M5Stack-xxxx")
|
||||
|
||||
>2.Once you have connected to your M5GO's access point you can enter the wifi settings page by scanning the QR code or by entering __192.168.4.1__ into your browser. Then you have arrived at the page choose your home wifi network from the list, enter your password and click configure
|
||||
|
||||
><img src="/image/base/1.png" width="15%"> <img src="/image/base/2.png" width="60%">
|
||||
|
||||
|
||||
#### Input your wi-fi credentials
|
||||
* __M5StickC__
|
||||
|
||||
>Once you have connected to your M5GO's access point you can enter the wifi settings page by scanning the QR code or by entering __192.168.4.1__ into your browser. Once you have arrived at the page choose your home wifi network from the list, enter your password and click configure
|
||||
>__*1.4.5 version and above can be configured directly through M5Bunner__
|
||||
|
||||
>1.Single press the power button,then connect to the StickC's access point with your computer or mobile device (The access point will look something like "M5Stack-xxxx")
|
||||
|
||||
><img src="/image/base/2.png" width="50%">
|
||||
>2.Once you have connected to your StickC's access point you can enter the wifi settings page by entering __192.168.4.1__ into your browser. Then you have arrived at the page choose your home wifi network from the list, enter your password and click configure
|
||||
|
||||
><img src="/image/base/3.png" width="10%"> <img src="/image/base/4.png" width="12%">
|
||||
|
||||
* __Atom Matrix__ __&__ __Atom Lite__
|
||||
|
||||
>__*1.4.5 version and above can be configured directly through M5Bunner__
|
||||
|
||||
>1.After the device is powered on, press and hold the middle button, and release it when the LED turns to yellow breathing light, and the yellow light will always on,then connect to the Atom's access point with your computer or mobile device (The access point will look something like "M5Stack-xxxx")
|
||||
|
||||
>2.Once you have connected to your Atom's access point you can enter the wifi settings page by entering __192.168.4.1__ into your browser. Then you have arrived at the page choose your home wifi network from the list, enter your password and click configure
|
||||
|
||||
# Configure API Key
|
||||
|
||||
#### Entering Code Upload Mode
|
||||
|
||||
* __M5GO__
|
||||
|
||||
>After turning on the M5stack, select the Upload mode by pressing the left face button. Assuming you have already setup wifi on your device, the M5stack will connect to your network and once it is connected will display a QR code and a unique API Key. We can now start to program the device by scanning the M5stack with a mobile device or entering the url displayed at the top of the screen into your browser [flow.m5stack.com](http://flow.m5stack.com). In addition, the uiflow connection server can be changed through the setting page. The website of Singapore server is [flow01.m5stack.com](http://flow01.m5stack.com)
|
||||
|
||||
><img src="/image/base/APIkey_user.png"/>
|
||||
|
||||
* __M5StickC__
|
||||
|
||||
>After power on, wait for the earth indicator to turn red to green (this indicates that m5stickc has successfully connected to the network), and directly visit [flow.m5stack. com](http://flow.m5stack.com/) in the computer browser to enter the uiflow programming page
|
||||
|
||||
* __Atom Matrix__ __&__ __Atom Lite__
|
||||
|
||||
>After power on, wait for the LED indicator to turn red to green (this indicates that atom has successfully connected to the network), and directly visit [flow.m5stack. com](http://flow.m5stack.com/) in the computer browser to enter the uiflow programming page
|
||||
|
||||
|
||||
# API Key
|
||||
@@ -59,219 +106,18 @@ __UIFlow and M5GO are two seperate concepts,UiFlow is the platform we use to p
|
||||
|
||||
>Once you have opened the UIflow website you can to connect to the web platform by clicking the gear icon in the top right corner, enter your API key and select your device and preferred language. Once you have entered the API Key click OK to confirm****
|
||||
|
||||
><img src="/image/base/APIkey_userpair1.png" width="50%">
|
||||
><img src="/image/base/APIkey_userpair1.png" width="50%"><img src="/image/base/APIkey_userpair2.png" width="50%">
|
||||
|
||||
><img src="/image/base/APIkey_userpair2.png" width="50%">
|
||||
|
||||
# Run,Download program
|
||||
>The apikey of atom can be viewed through the web distribution network page or through the serial port tool
|
||||
|
||||
#### Running a program
|
||||
><img src="assets/img/product_pics/core/minicore/atom/apikey.png" width="50%"><img src="assets/img/product_pics/core/minicore/atom/serialtool.png" width="50%">
|
||||
|
||||
>After you've finished programming press the play button in the top right corner to run your code
|
||||
# UIFlow Quick Start
|
||||
|
||||
><img src="/image/base/Run_program.gif" width="50%">
|
||||
* [M5StickC getting started with the Internet of things](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/UIFlow-StickC-Book-English.pdf)
|
||||
|
||||
#### Downloading a program
|
||||
|
||||
>Whats the difference between running and downloading a program? The play button puts our code into the volatile memory of your M5stack. Which means it will be lost once you turn off the M5stack. The download function however will store your program in the flash memory of your device which will not be erased on reboot. Each time you turn on the M5stack after downloading a program, that program will run automatically, and you can also select it from the app list which is accessed by pressing the center button on boot up.
|
||||
|
||||
|
||||
><img src="/image/base/DL_program.png" width="50%">
|
||||
|
||||
# UIFlow interface
|
||||
|
||||
### UIFlow's interface is seperated into 5 main sections
|
||||
|
||||
|
||||
><img src="/image/base/UIFLOW_interface.png" width="50%">
|
||||
|
||||
* __Coding area__
|
||||
>Drag code blocks from the blocks list into the coding area and connect them together to create a program
|
||||
|
||||
* __Menu Bar__
|
||||
>The menu bar contains most of the important functions of the interface such as(Example,Undo and redo,upload,run code,download code,save code etc...)
|
||||
|
||||
* __Blockly</>Python__
|
||||
>All the code we create in blocks can be converted to python by pressing this switch
|
||||
|
||||
* __UI Designer__
|
||||
>Drag the UI elements (Title, Lable etc..) down to the M5GO screen to design an avatar or UI interface (note: You must press the run code button to see the changes on the M5's screen)
|
||||
|
||||
* __Units__
|
||||
>Units are sensors and actuators that can be plugged into the M5GO, and here is where we configure them
|
||||
|
||||
|
||||
|
||||
# Program structure
|
||||
|
||||
#### Setup
|
||||
|
||||
>When you open UIFlow, you will find that there is already a Setup block at the beginning. Each program must have a Setup block. The program runs from the Setup block and will only run once. You can think of it as a Initialization block of the program
|
||||
|
||||
><img src="/image/Program_structure/Setup.png" width="20%">
|
||||
|
||||
|
||||
#### Loop
|
||||
|
||||
>Loop is an infinite loop block. When it is executed, it will execute the program contained in the block indefinitely until some event occurs to stop it. For example, M5GO shuts down, it does not have to exist in the program, but in order to let the program continue You can add it when running, or when implementing certain features.
|
||||
|
||||
><img src="/image/Program_structure/Loop.png" width="20%">
|
||||
|
||||
|
||||
#### Program connection
|
||||
|
||||
>Blocks can be connected between the blocks by means of a snap on the block, just like a jigsaw
|
||||
|
||||
><img src="/image/Program_structure/Block_connect.gif" width="50%">
|
||||
|
||||
#### Program execution order
|
||||
|
||||
>The program is executed from top to bottom. When the program starts running, first enter the Setup single execution initialization program, and then enter the Loop to continuously cycle the main program.
|
||||
|
||||
|
||||
><img src="/image/Program_structure/Process.png">
|
||||
|
||||
# Button
|
||||
|
||||
#### Function Description
|
||||
|
||||
>M5GO provides three panel buttons (A, B, C), through the Button Block, we can use these three buttons to achieve control
|
||||
|
||||
><img src="/image/Program_structure/Button.png" width="40%">
|
||||
|
||||
|
||||
* __initiative Button__
|
||||
Directly controlled by physical buttons on the M5GO panel
|
||||
|
||||
* __passive Button__
|
||||
The button can be triggered by the program, and more functions can be realized with the active Button.
|
||||
|
||||
* __obtain Button__
|
||||
The button can be triggered by the program only once, if you keep pressing it, it won’t happen unless released.
|
||||
|
||||
#### Usage
|
||||
|
||||
>Put the program that needs to be run after pressing the button, put it in the Button Block, and modify the corresponding button position.
|
||||
|
||||
><img src="/image/Program_structure/Button_connect.gif" width="50%">
|
||||
|
||||
# Wait
|
||||
|
||||
#### Function Description
|
||||
|
||||
>Wait is a delay block in the Timer option, you can set the time of Wait execution, and add to the program according to requirements.
|
||||
|
||||
|
||||
><img src="/image/Program_structure/Wait.png" width="20%">
|
||||
|
||||
* __Wait__
|
||||
Modify the number in the data frame to change the time of the Wait delay.
|
||||
|
||||
* __Get ticks ms__
|
||||
Get current system run time.
|
||||
|
||||
#### Usage
|
||||
|
||||
>Add the Wait Block to the program that needs to be delayed and set the time. When the program executes to it, it will play a delay.
|
||||
|
||||
><img src="/image/Program_structure/Wait_user.gif" width="50%">
|
||||
|
||||
|
||||
# Timer
|
||||
|
||||
#### Function Description
|
||||
|
||||
>Timer is a timer function that can be run into the program block periodically.
|
||||
|
||||
><img src="/image/Program_structure/Timer.png" width="20%">
|
||||
|
||||
* __Timer callback__
|
||||
Timer callback function, executed regularly
|
||||
|
||||
* __Start period ms mode__
|
||||
The timer is started to run at the specified time interval. There are two setting modes, One_shot is executed once, and periodic is executed periodically.
|
||||
|
||||
* __Set period ms mode__
|
||||
Modify the time parameter and running mode of the specified timer.
|
||||
|
||||
* __Stop__
|
||||
Stop timer.
|
||||
|
||||
#### Usage
|
||||
|
||||
>Add two timers, count separately according to time parameters.
|
||||
|
||||
><img src="/image/Program_structure/Timer_user.gif" width="50%">
|
||||
|
||||
# UIFlow Desktop IDE deployment{docsify-ignore-all}
|
||||
|
||||
1. [Install UIFlow-Desktop-IDE](#Install-UIFlow-Desktop-IDE)
|
||||
|
||||
2. [configuration](#configuration)
|
||||
|
||||
3. [Example](#Example)
|
||||
|
||||
4. [Additional features](#Additional-features)
|
||||
|
||||
|
||||
|
||||
## Insrall UIFlow-Desktop-IDE
|
||||
|
||||
>Click **UIFlow-Desktop-IDE** for your operating system below to download.
|
||||
|
||||
<div class="link">
|
||||
<h4><span>UIFlow Desktop IDE:</span></h4>
|
||||
<p>
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/UIFlow-Desktop-IDE.zip" target="_blank" rel="noopener noreferrer"><img src="https://cdn.shopify.com/s/files/1/0056/7689/2250/files/windows_89cc6ea0-2a3c-4327-97e5-8f51f448c38b_icon.png?v=1557026574" alt="">Windows</a>
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/UIFlow-Desktop-IDE_MacOS.zip" target="_blank" rel="noopener noreferrer"><img src="https://cdn.shopify.com/s/files/1/0056/7689/2250/files/mac_large.png?v=1557026570" alt="">MacOS</a>
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/UIFlow-Desktop-IDE_Linux.zip" target="_blank" rel="noopener noreferrer"><img src="https://cdn.shopify.com/s/files/1/0056/7689/2250/files/linux_icon.png?v=1557026584" alt="">Linux</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
## configuration
|
||||
|
||||
>Unzip the downloaded UIFlow Desktop IDE archive and double-click to execute the application..
|
||||
|
||||
<img src="assets/img/related_documents/UIFlow_Desktop_IDE/Desktop_IDE_01.jpg">
|
||||
|
||||
?>After the software is started, it will automatically detect whether your computer has a USB driver (CP210X) installed, click Install, and follow the prompts to install it.
|
||||
|
||||
<img src="assets/img/related_documents/UIFlow_Desktop_IDE/Desktop_IDE_02.png">
|
||||
|
||||
>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/related_documents/UIFlow_Desktop_IDE/Desktop_IDE_03.png">
|
||||
|
||||
!>Using the UIFlow Desktop IDE requires the M5 device to carry the UIFlow firmware and enter the **USB mode**.
|
||||
|
||||
>Click the power button on the left side of the device to restart. After entering the menu, select Setup quickly to enter the configuration page and select**USB mode**.
|
||||
|
||||
<img src="assets/img/related_documents/UIFlow_Desktop_IDE/Desktop_IDE_04.png">
|
||||
|
||||
>Select the corresponding port, and connect to the programming device, click OK.
|
||||
|
||||
<img src="assets/img/related_documents/UIFlow_Desktop_IDE/Desktop_IDE_05.jpg">
|
||||
|
||||
!>If you are using M5StickC, please follow the instructions below
|
||||
|
||||
>Press and hold the power key on the left side of the fuselage for 2 seconds to start the machine. After the uiflow logo appears, quickly click the home key (center M5 key) to enter the configuration page. Press the button on the right side of the fuselage to switch the option to setting, and press home to confirm. Press the right key to switch to USB mode, press home key to confirm, enter USB programming mode, select the corresponding COM port and device in IDE, and click Connect.
|
||||
|
||||
<img src="assets/img/related_documents/UIFlow_Desktop_IDE/Desktop_IDE_00.jpg">
|
||||
|
||||
|
||||
## Example
|
||||
|
||||
>After the connection is completed, you can start programming. Drag and drop the block in the block list on the left to the programming area. After editing the program, click the Run button in the upper right corner to execute the program..
|
||||
|
||||
<img src="assets/img/related_documents/UIFlow_Desktop_IDE/Desktop_IDE_06.jpg">
|
||||
|
||||
## Additional features
|
||||
|
||||
!>In addition to being a powerful program editor, UIFlow Desktop IDE also integrates **USB driver** installation, **M5Burner** burning tool and other functions, no need to download other software, one-stop solution programming environment Deployment requirements.
|
||||
|
||||
>In the upper menu bar of the IDE, you can find the corresponding additional functions, click to open the use, about the use of M5Burner, please refer to our other document for details. ["Upgrade Firmware"](zh_CN/related_documents/M5Burner).
|
||||
|
||||
<img src="assets/img/related_documents/UIFlow_Desktop_IDE/Desktop_IDE_07.jpg">
|
||||
* [M5GO getting started with programming](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/M5GO_Guide_English.pdf)
|
||||
|
||||
<style>
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@ Terminal blocks are used to secure and/or terminate wires and, in their simplest
|
||||
### Connector Specifications
|
||||
|
||||
- Type: Plug, Female Sockets
|
||||
- Number of Positions: 6
|
||||
- Positions Per Level: 6
|
||||
- Number of Positions: 4
|
||||
- Positions Per Level: 4
|
||||
- Number of Levels: 1
|
||||
- Pitch: 0.156"(3.96mm)
|
||||
- Header Orientation: -
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
>__*1.4.5以上版本可直接通过M5Bunner配置__
|
||||
|
||||
>1.单击设备的电源键开机,在屏幕出现Logo后按下A键,然后用手机连接屏幕上显示的热点
|
||||
>1.单击设备的电源键开机,在屏幕出现Logo后按下A键,然后用手机连接屏幕上显示的wifi热点
|
||||
|
||||
>2.用手机连接热点成功后,打开手机浏览器扫描屏幕上的二维码,或是直接访问 __192.168.4.1__,进入页面填写个人的WIFI信息,使得设备连接上你的个人网络
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
>1.单击设备的电源键开机
|
||||
|
||||
>2.用手机连接屏幕上显示的热点,打开手机浏览器扫描屏幕上的二维码,或是直接访问 __192.168.4.1__,进入页面填写个人的WIFI信息,使得设备连接上你的个人网络
|
||||
>2.用手机连接屏幕上显示的wifi热点,然后打开手机浏览器直接访问 __192.168.4.1__,进入页面填写个人的WIFI信息,使得设备连接上你的个人网络
|
||||
|
||||
><img src="/image/base/3.png" width="10%"> <img src="/image/base/4.png" width="12%">
|
||||
|
||||
@@ -100,6 +100,9 @@
|
||||
|
||||
><img src="/image/base/APIKey_userpair1.png" width="50%"><img src="/image/base/APIKey_userpair2.png" width="50%">
|
||||
|
||||
>Atom的APIKey可以通过web配网页面查看,或通过串口工具查看
|
||||
|
||||
><img src="assets/img/product_pics/core/minicore/atom/apikey.png" width="50%"><img src="assets/img/product_pics/core/minicore/atom/serialtool.png" width="50%">
|
||||
|
||||
# UIFlow快速上手指南
|
||||
|
||||
|
||||
Reference in New Issue
Block a user