This tutorial applies to BASIC/GRAY/M5GO/FIRE/FACES kit
Click the link below to download the driver that matches the operating system. There are currently two driver chip versions (CP210X/CH9102). Please download the corresponding driver compressed package according to the version you are using. After decompressing the compressed package, select the installation package corresponding to the number of operating systems to install. (If you are not sure of the USB chip used by your device, you can install both drivers at the same time. During the installation process of
CH9102_VCP_SER_MacOS v1.7, an error may occur, but the installation is actually completed, just ignore it.)
|Driver name||Applicable driver chip||Download link|
Please click the button below to download the appropriate M5Burner firmware burning tool according to the operating system you are using. Open the application after decompression.
MacOSAfter the user has completed the installation, please put the application into the
Application,As shown in the following figure。
LinuxFor users, please switch to the decompressed file path and run in the terminal.
./M5Burner, run the application。
Double-click to open the Burner burning tool, ① select the corresponding device class in the left menu, ② select the firmware version you need, and ③ click the download button to download.
Connect the M5 device to the computer through the Type-C data cable, ④ select the corresponding COM port, the baud rate can use the default configuration in M5Burner, ⑤ after the configuration is complete, click "Burn" to burn.
You can fill in the WIFI information that the device will connect later during the firmware burning phase. (This information will be used for devices to connect to the network, and in this tutorial, we will program in USB mode, which is not required.).
When the burning log prompts
Successfully, it means that the firmware has been burned.
When the first burning or the firmware program runs abnormally, you can erase the flash memory by clicking "Erase" in the upper right corner. In subsequent firmware updates, you do not need to erase it again.
If you need to modify the configuration file, please connect your M5 device to your computer through the Type-C cable and select the corresponding COM port,⑦Then you can click configuration to modify it.
APIKey: Communication credentials of M5 devices when programming with UIFlow web.
Start Mode: Configurable mode to enter after startup.
Quick Start: You can choose Quick start to skip the startup interface.
Server: Server selection.
Wifi: Configure SSID and Password for Wifi.
COM.X & APN: Configure to use LTE network.
Download. VSCode IDE:
Click here to download
Install the M5Stack plug-in: Search the plug-in market for
M5Stack and install the plug-in, as shown below.
Click the power button on the left side of the device to restart. After entering the menu, quickly select Setup, enter the configuration page, and select USB mode.
Click the Add M5Stack option in the lower left corner and select the corresponding device port to complete the connection.
After completing the above steps, let's implement a simple screen display case program, open the M5Stack file tree, and type in the following program. Click
Run in M5stack to make the screen red easily. If the device is reset, click the refresh button to reopen the file tree.
from m5stack import * from m5stack_ui import * from uiflow import * setScreenColor(0xff0000)