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

    Adding external libraries via uiflow

    UIFlow
    9
    25
    86.3k
    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.
    • J
      jesuslg123
      last edited by

      Is this method valid to replace libraries like urequests? I found a "bug" on the current implementation and I would like to replace the one that comes with the UIFlow firmware to workaround the issue. Is that possible or in any other way?
      Thanks!

      ajb2k3A 1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3 @jesuslg123
        last edited by

        @jesuslg123 If you use a programs like VStudio, Thonny and mu that you can add library directly to the M5Stack

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        J 1 Reply Last reply Reply Quote 0
        • J
          jesuslg123 @ajb2k3
          last edited by

          @ajb2k3 said in Adding external libraries via uiflow:

          @jesuslg123 If you use a programs like VStudio, Thonny and mu that you can add library directly to the M5Stack

          Thanks, for the this project I was using the UIFlow editor with the UI programming language, do you think I can also replace the urequest version that is using this?
          Also can you share with me how to upload with Visual Studio? Thanks

          1 Reply Last reply Reply Quote 0
          • ajb2k3A
            ajb2k3
            last edited by ajb2k3

            UIFlow is based on Micropython 1.11 so switching isn't that hard.
            Check out https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w luke made a useful vid on it.

            The great thing about UIFlow/Micropython is that you can build most of the program in UIFlow and then switch to Micropython to make final adjustments.
            The only issue is that you can't change back to UIFlow after adjusting because the code blocks won't exist for you added code.

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            1 Reply Last reply Reply Quote 1
            • R
              robalstona
              last edited by

              If you use Visual Code you could install this extension

              https://marketplace.visualstudio.com/items?itemName=curdeveryday.vscode-m5stack-mpy

              Then transfer your modified library to flash. It would be good to change the name to another one, so that the import function does not load the built-in urequests library. Alternatively, you would have to look in what order and from which locations the libraries are imported.

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