UIFlow 2.0 provides a file management feature, offering a unified and convenient platform for developers to handle and manage various project files.
The file management system is divided into USB mode and WiFi mode, with the following differences:
Connect the device to the computer via a USB cable, click the webterminal button on the left, and after successful connection, click File to open the file management system.
In the file management system, you can view all files saved in the device and perform operations such as adding, deleting, and previewing documents. Click Get File
and Delete File
to add or delete documents in the settings, and click Send File to Hear to upload files from the computer to the settings.
Drag the Image Block, fill in the image name and format, and click Run to preview the result.
Find the default address for the specified image to be modified, change the default address to the desired image, open WebTerminal, and click the triangle to run and preview the result. For example, if the address of the M5stack.png image in the figure below is flash/res/img/M5stack.png, modify the default image0 introduction resource and replace it with the image path of M5stack.png.
Wi-Fi resource reference modes are divided into local preview mode and cloud project reference mode. The differences are as follows:
Before connecting the device to the computer via WiFi, ensure that the device is powered on and connected to WiFi. When the device is online, click the Device Management button in the UIFlow 2.0 Web IDE to connect to the current online device you want to use.
Click the device file management system, in the device file management system, you can upload project files and static resource files, file upload success, will be downloaded to the device, at the same time, the device files can also be previewed in the Web IDE.
Click the project file management system, in the project management system, you can upload project files and static resource files, file upload success, resources will be saved in the project, at the same time, other devices of the same type can also share file resources.
Note: The project saved in the cloud is a separate storage space. The successful operation of the program will not upload the files in the device to the cloud project, but will download the file resources of the run to the device.
On the UI editing page, you can add image resources to the device by clicking the image add button. Additionally, with a network connection, the Web IDE supports online preview of images, and you can directly introduce them through code blocks.