English
English
简体中文
日本語

UiFlow Tutorial

UiFlow1 Development Guide

Project Management

Use LTE network

UiFlow1 Blockly

Event

Unit

PaperMono / PaperMono-Lite : Flash Firmware & Run Code

1. UiFlow2 Firmware Flashing

  1. Refer to the UiFlow2 Web IDE Tutorial to learn the basic UiFlow2 workflow and install the M5Burner firmware flashing tool.
  2. In M5Burner, download the PaperMono or PaperMono-Lite firmware corresponding to your device model.
  1. Connect the device to your computer with a USB Type-C cable. Press and hold the power button for about 2 seconds until the red LED flashes, then release the button. The device enters download mode.
  1. In M5Burner, click the Burn button for the corresponding firmware, select the device serial port, and click Start.
  1. Enter the Wi-Fi settings required by the device, including Wi-Fi SSID, Wi-Fi Password, and other device settings, then click Next to start flashing.

Configuration items:

  • COM: Select the serial port corresponding to the device.
  • BaudRate: The baud rate for serial communication.
  • Server: The server address to which the device connects.
  • WIFI SSID / WIFI Password: The Wi-Fi name and password used by the device.
  • SNTP0: Alibaba Cloud NTP server (China).
  • SNTP1: Japanese NTP server pool.
  • SNTP2: Global public NTP server pool.
  • Timezone: Time zone setting.
  • Boot Option: The startup mode after firmware flashing is complete.
    • Run main.py directly: Run the program in main.py directly, without connecting to the network or displaying the UiFlow2 startup screen.
    • Show startup menu and network setup: Connect to the network and display the UiFlow2 startup screen.
    • Only network setup: Connect to the network only, without displaying the UiFlow2 startup screen.
  1. When M5Burner displays Burn successfully, click here to return, flashing is complete. Reset the device.
  1. To modify the device settings, keep the USB connection, restart the device, click Configure, and make changes according to the on-screen instructions.

2. Connecting the Device

PaperMono and PaperMono-Lite support connecting to UiFlow2 through an Access Code (wireless network) or USB (wired computer connection) for program upload and debugging. Refer to the tutorials below for details.

Wireless Connection with Access Code

  1. Before connecting, make sure the device is connected to Wi-Fi. If the connection fails, modify the network settings through the Configure option in M5Burner and flash the firmware again.

  1. Check the currently generated valid Access Code on the device's UiFlow2 startup screen.
  1. Visit uiflow2.m5stack.com to open the UiFlow2 Web IDE.

  2. Click Select Your Controller or Controller on the page to open the Select Device page.

  1. Click Connect Device, enter the Access Code and a custom device name, then click Confirm.
  1. On the Select Device page, select the connected PaperMono or PaperMono-Lite, click Confirm, and enter the UiFlow2 programming interface.
Access Code Notes
1. Changing browsers, using private/incognito mode, or clearing the UiFlow website cache will invalidate the original pairing.
2. Closing only the tab, restarting the browser, or logging in or out will not affect the existing pairing.
3. Once the device is paired by another browser, the pairing in the original browser becomes invalid immediately.

Wired Connection with USB

  1. Visit uiflow2.m5stack.com to open the UiFlow2 Web IDE, and connect PaperMono or PaperMono-Lite to your computer with a USB Type-C cable.

  2. Click Select Your Controller or Controller on the page to open the Select Device page.

  1. Select the corresponding model in the device list and click Confirm.
  1. Click WebTerminal, select the serial port for the corresponding device in the dialog, and click Connect.

When WebTerminal displays Connected to Serial Port!, the USB connection is successful.

3. Running and Downloading Programs

After the device is connected to UiFlow2, you can edit programs by dragging and dropping Blockly blocks.

After editing the program, click the Run Once button in the lower-right corner to run a single test. Click Run Always to download the program to the device.

You can also run the program once or download it from the WebTerminal window.

Page Tools
PDF
On This Page