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

    Where is asyncio?

    Scheduled Pinned Locked Moved Micropython
    9 Posts 2 Posters 11.5k Views
    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.
    • R Offline
      robjasey
      last edited by

      I tried importing both uasyncio and usyncio. Both failed (no module). Where do I find the async modules?
      Thanks in advance!

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

        What firmware version are you using?

        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
        • R Offline
          robjasey
          last edited by

          V1.9.8
          Sorry for the delay in responding . Running on Core

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

            asyncro is hiding in the firmware and needs to be manually coded to access.

            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!

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              robjasey @ajb2k3
              last edited by

              @ajb2k3 thank you. how does one access descriptions of the contents of the firmware that are accessible through micropython? I have tried importing (i.e. import uasyncio fails)

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

                I've been trying to record them but its slow going without proper documentation. if you want to look into them yourself you need to learn how to use REPL to access the help/DIR function.

                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!

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  robjasey @ajb2k3
                  last edited by

                  @ajb2k3 Thanks for your assistance. I do know how to use the dir and help functions, but I have looked in m5stack and machine and cannot locate them (even drilling down modules are in m5stack and machine.)

                  R 1 Reply Last reply Reply Quote 0
                  • R Offline
                    robjasey @robjasey
                    last edited by

                    So I tried help("modules") to get the list of all modules. Turns out there is a reference to "_uasyncio" but the object looks like it is only a shell of a module. It has references to a Task class and TaskQueue class but no functions. An attempt to use _uasyncio confirms this. Sigh.

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

                      @robjasey said in Where is asyncio?:

                      So I tried help("modules") to get the list of all modules. Turns out there is a reference to "_uasyncio" but the object looks like it is only a shell of a module. It has references to a Task class and TaskQueue class but no functions. An attempt to use _uasyncio confirms this. Sigh.

                      Well that's a pain.
                      Sorry I can't help more.

                      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

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post