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

    Python development in UIFlow

    UiFlow 2.0
    3
    6
    540
    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.
    • S
      sternj
      last edited by

      The current UIFlow IDE doesn't actually have any way of saving code written in the "custom edit" mode. This is especially problematic given that the uiflow2 plugin for VSCode, the only other fully-featured IDE with support for for M5Stack mpy, seems to have been abandoned around a year ago.

      kurikoK 1 Reply Last reply Reply Quote 0
      • kurikoK
        kuriko @sternj
        last edited by

        @sternj
        Yes... this feature doesn't seem to be very necessary, custom edit is supposed to be used for some kind of debugging.

        Good morning, and welcome to the Black Mesa Transit System.

        S 1 Reply Last reply Reply Quote 0
        • S
          sternj @kuriko
          last edited by

          @kuriko I disagree, the feature is incredibly necessary. I like UIFlow a lot as a framework and I quite like the Python API, but the block programming system is unwieldy for folks who know Python and want to write more expressive programs.

          (I'm also not a fan of the codegen done by any visual programming engine, but that gripe is more stylistic than substantive)

          I am reasonable at C++ but I really prefer doing prototyping in Python and I like the drag-and-drop UI of the UIFlow2 IDE. I've just been saving it in a text buffer.

          teastainT 1 Reply Last reply Reply Quote 0
          • teastainT
            teastain @sternj
            last edited by

            @sternj Hi!
            You sound like you are too advanced for drag and drop.
            I think you should stick to micropython for its range and flexibility.
            Cheers.

            Cheers, Terry!

            100% M5Stack addict with several drawers full of product!

            S 1 Reply Last reply Reply Quote 0
            • S
              sternj @teastain
              last edited by

              @teastain That's what I'm trying to do! I find the UIFlow2 IDE really convenient for its toolchain integration and would like to be able to use micropython directly in it with first-class support.

              teastainT 1 Reply Last reply Reply Quote 0
              • teastainT
                teastain @sternj
                last edited by

                @sternj Well, the Arduino IDE ver2 IDE is very good.
                Just type in C, C++ and download (it compiles automatically.)
                This is NOT your grandad's Arduino IDE ver 1 !!!
                Here is a sample program to test serial:

                bool ticktock;  //declare ticktock as a boolean flag
                
                void setup() {           //runs once on start up
                  Serial.begin(115200);  //open the serial port for USB cable
                  delay(500);
                }
                
                void loop() {            //runs in circles!
                  ticktock = !ticktock;  //every pass through reverse the flag
                  if (ticktock) {        //test current value of the ticktock flag
                    Serial.println("tick");
                  } else {  //prints one or the other to the USB port
                    Serial.println("tock");
                  }
                  delay(1000);  //wait for a second and run again!
                }
                

                Cheers, Terry!

                100% M5Stack addict with several drawers full of product!

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