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

    Display Module block is not working

    UiFlow 2.0
    2
    2
    801
    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.
    • dissyD
      dissy
      last edited by

      @m5stack
      In the module "Display", the block "Module Display config" generates the following upython code and error message:

      module_display = M5.addDisplay({"module_display":{enabled:True, width:1920, height:480, refresh_rate:60, scale_w:0, scale_h:0, pixel_clock:7425000}})

      NameError: name 'enabled' isn't defined

      The correct python syntax that should be generated, with strings double-quoted, is:

      module_display = M5.addDisplay({"module_display":{"enabled":True, "width":1920, "height":480, "refresh_rate":60, "scale_w":0, "scale_h":0, "pixel_clock":7425000}})

      Manually entering the above adds in the second display without errors, but putting that code in an "execute mpy code" block instead makes the UI editor unusable

      1 Reply Last reply Reply Quote 0
      • lbuqueL
        lbuque
        last edited by

        @dissy Processing

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