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

    Where is the API ?

    Micropython
    6
    16
    10.8k
    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.
    • ajb2k3A
      ajb2k3
      last edited by

      Don't use ChatGPT its often wrong.

      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!

      E 1 Reply Last reply Reply Quote 0
      • E
        EBKsuper @ajb2k3
        last edited by EBKsuper

        @ajb2k3 Yes, very true. anyway it helps me alot to understand and pointing in the right direction. I created a few scripts allready with this I otherwise would never be able to script. So, a big help to me at last. As I mentioned I have Ideas and cases but I am affraid I wont learn propper coding.
        So I simply rely on try and error, google and chat gpt. thats my reality.

        And the Forum is a help too, of course : )
        I will try your suggestion about "Bing" as this is A.I. now. In the past that search engine was never of any good help for me, I am affraid.

        cheers
        EBK

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

          This page contains the core Micropython API (if you use UIFlow which is built on micropython) https://docs.micropython.org/en/latest/esp32/quickref.html

          If you are on Facebook, in the M5Stack page, I have just uploaded an Update to the UIFlow 1.x doc

          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!

          E 1 Reply Last reply Reply Quote 0
          • E
            EBKsuper @ajb2k3
            last edited by

            @ajb2k3 perfect thank you : )

            1 Reply Last reply Reply Quote 0
            • C
              calumc
              last edited by

              I had the same question...
              Coming from the adafruit world and Circuitpython, I'm used to having a reference like this https://docs.circuitpython.org/en/latest/shared-bindings/index.html (which is very comprehensive and a lot of work)

              UIFlow does seem pretty easy to understand, even without documentation.
              But when I do something in micropython like

              import unit

              What am I actually importing? is source code available?

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

                No source code but Updated documentation is uploaded weekly to the Facebook group for preview.

                Every product has a documentation page with demos and programming guides are found on the M5Stack site under Documentation.

                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 0
                • C
                  Cognitive5525
                  last edited by

                  I totally agree with the OP!
                  A proper API documentation would be appreciated (Hope someone from M5Stack is looking here)

                  Maybe slightly off topic but:
                  I also don't like UIfLow with its strange and unnecessary complicated "cloud connection" to be able to program the devices and it becomes incredible difficult to work with as soon as you slightly increase the complexity of your programs, but when I program my M5stack units directly in Micropython with Thonny I use UIFLow (offline) as a kind of API to find functions in the main M5Stack libraries mentioned by the OP (m5stack, m5ui, uiflow ).

                  A further tip:
                  In Micropython (like in Python) you can always inspect any library with
                  help(<library_name>) or dir(<library_name>)
                  At least this will give at list of objects that may hint you to available functions.

                  By the way, does anyone know of release note for the M5Stack Micropython binaries?
                  There is quite often a new release but there is no info about bug fixes new features etc.

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    gavin67890 @Cognitive5525
                    last edited by

                    Hi @cognitive5525,

                    Were you thinking more like a M5Stack reference rather than how-do document? I would love that.

                    Maybe like this
                    https://docs.m5stack.com/en/uiflow/hardwares/microphone
                    with further breakdown of each function with syntax and parameters in MicroPython code.

                    Have you tried using Visual Studio Code to program devices directly? I might try Thonny because I need something that works across macOS, RPi and Linux. VS Code was ideal, and I have been using it, but I couldn't "add device" when I tried on macOS today.

                    Atom LITE | Atom Matrix | StickC | CORE2 | Paper | ...

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

                      If you use and IDE like thonny you can directly access Micropython and use the function help. I have been looking and recording them but as I work it has been slow going (especially when things break) and I have been releasing updated documentation weekly but I have been away for a while.

                      I have also been busy the last few weeks uploading getting started videos to youtube

                      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 0
                      • C
                        Cognitive5525 @gavin67890
                        last edited by

                        @gavin67890 said in Where is the API ?:

                        Hi @cognitive5525,

                        Were you thinking more like a M5Stack reference rather than how-do document? I would love that.

                        Maybe like this
                        https://docs.m5stack.com/en/uiflow/hardwares/microphone
                        with further breakdown of each function with syntax and parameters in MicroPython code.

                        Yes a reference as you'll find for the stock Micropython. Tutorials or Howtos are also find but usually only in the very beginning.

                        Have you tried using Visual Studio Code to program devices directly? I might try Thonny because I need something that works across macOS, RPi and Linux. VS Code was ideal, and I have been using it, but I couldn't "add device" when I tried on macOS today.

                        I tried it once or twice with VS some time ago, but I couldn't get the plugin work well. It was difficult to establish a stable connection to the devices.

                        I had to tweak Thonny though:
                        https://community.m5stack.com/topic/5268/micropython-for-atom-s3-lite/4

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