🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Bug report: UIFlow 2.0 can't save projects for Nano C6

    Bug Report
    1
    1
    19
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Physalice
      last edited by

      Hi! i've been trying to program and save project for my recently bought NanoC6, and it seems to be work fine, but when i'm trying to save it to the cloud - all blocks disappears when i'm trying to get back to project on other day :"(
      But strangely i can see blocks on the preview...

      It was flashed with UiFLow official software to be seamlessly connected to web code designer
      Order date: Aug 20, 2025 , but arrival was later due to the company announced holidays

      Version of UIFlow: 2.3.7

      Steps to re-production: any code or blocks placed on the field is not saving, but on preview it shows

      Example code:
      i hope it could be helpful since it is in the rules of bug report posting

      import os, sys, io
      import M5
      from M5 import *
      import network
      from hardware import I2C
      from hardware import Pin
      from unit import MiniOLEDUnit
      import time

      wifi_status = None
      Hr = None
      Min = None
      Sec = None
      Hr_line = None
      Min_line = None
      Sec_line = None
      wlan = None
      i2c0 = None
      minioled_0 = None

      Hour = None
      Minute = None
      Second = None
      tuple0 = None

      def setup():
      global wifi_status, Hr, Min, Sec, Hr_line, Min_line, Sec_line, wlan, i2c0, minioled_0, Hour, Minute, Second, tuple0

      M5.begin()
      M5.Lcd.setBrightness(100)
      wlan = network.WLAN(network.STA_IF)
      i2c0 = I2C(0, scl=Pin(1), sda=Pin(2), freq=100000)
      minioled_0 = MiniOLEDUnit(i2c0, 0x3c)
      Widgets.fillScreen(0x000000, minioled_0)
      wifi_status = Widgets.Label("wifi", 13, 0, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu9, minioled_0)
      Hr = Widgets.Label("HR", 0, 10, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu9, minioled_0)
      Min = Widgets.Label("Min", 0, 20, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu9, minioled_0)
      Sec = Widgets.Label("Sec", 0, 29, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu9, minioled_0)
      Hr_line = Widgets.Label("Hours", 21, 10, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu9, minioled_0)
      Min_line = Widgets.Label("Minutes", 21, 20, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu9, minioled_0)
      Sec_line = Widgets.Label("Seconds", 21, 29, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu9, minioled_0)
      time.timezone('GMT+3')
      wlan.connect('SSID_NAME', 'PASSWORD')
      tuple0 = time.localtime()
      Hour = tuple0[3]
      Minute = tuple0[4]
      Second = tuple0[5]

      def loop():
      global wifi_status, Hr, Min, Sec, Hr_line, Min_line, Sec_line, wlan, i2c0, minioled_0, Hour, Minute, Second, tuple0
      M5.update()
      if wlan.isconnected():
      wifi_status.setText(str('Wifi OK'))
      if not (wlan.isconnected()):
      wifi_status.setText(str('Wifi NO'))
      tuple0 = time.localtime()
      Hour = tuple0[3]
      Minute = tuple0[4]
      Second = tuple0[5]
      Hr.setText(str(Hour))
      Min.setText(str(Minute))
      Sec.setText(str(Second))
      while not (BtnA.wasSingleClicked()):
      M5.Lcd.setBrightness(0)
      break
      while BtnA.wasClicked():
      M5.Lcd.setBrightness(100)
      time.sleep(5)
      break

      if name == 'main':
      try:
      setup()
      while True:
      loop()
      except (Exception, KeyboardInterrupt) as e:
      try:
      from utility import print_error_msg
      print_error_msg(e)
      except ImportError:
      print("please update to latest firmware")

      1 Reply Last reply Reply Quote 0
      • First post
        Last post