Connect to the device via serial or SSH to access the terminal, then execute the following commands to download the system dependencies (this step requires network connectivity).
The CoreMP135-UiFlow2 package is a third-party Python 3.11 library prepared for CoreMP135 UiFlow2, used to run code generated by UiFlow2. This library includes an executable UiFlow2 command-line tool for starting/stopping a background service. The background service will connect to the UiFlow2 server to receive commands.
Download the UiFlow2 software package through the pip package manager. Since the pip in the Debian 12 system has enabled the system protection function, refer to the following instructions and add the --break-system-packages flag to install the software package (this step requires a network connection).
pip install uiflow2 --break-system-packages
Test whether the installation was successful by checking that uiflow2 appears in the pip package list.
Refer to the command below, and enter your M5Stack account's email address and password to bind the device to your account. If you do not have an account, you can click here to register a new account.
uiflow2 register
Please input your email: XXXXXXXXX@XXXX.com
Please input your password:
5. Start UiFlow2 Service
# Start the UiFlow2 service
uiflow2
Other common commands
# Run the default UiFlow menu program and start the UiFlow2 service
uiflow2 ui
# Stop the UiFlow2 service
uiflow2 stop
Linux system service commands
# Enable uiflow2 systemd service; uiflow2 will start automatically when the system starts
uiflow2 enable# Restart uiflow2 systemd service
systemctl restart uiflow2.service
# Check uiflow2 systemd service status
systemctl status uiflow2.service
# Stop uiflow2 systemd service
systemctl stop uiflow2.service
# Remove uiflow2 systemd service
uiflow2 disable
6. Program Push
Visit the UiFlow2 Web IDE and log in with your M5Stack account. In the device list, you can see the currently online devices. Select a device to start programming.
7. Version
V0.0.1
feature: support widgest(title, label, rect, circle, line, triangle, image) display.
feature: support file operation write/read/HTTP download/delete.
feature: support download program and run it when uiflow2 start.
feature: support touch, power, button, sperker, i2c, uart api.
feature: support unit envpro, tmos, gpsv1.1, imu.
feature: support uiflow2 systemd service for auto start.
feature: support bind accounts by email and password.
V0.0.2
feature: support Unit IMU, IMU Pro, ENV, ENV II, ENV III, ENV IV, ENV Pro, COLOR, ToF, ADC, ADC V1.1, DAC, DAC2, EXT.IO, FINGER.