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

    [Solved]Ui Flow - encoder support

    Scheduled Pinned Locked Moved FACES Kit
    7 Posts 4 Posters 13.3k Views 1 Watching
    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.
    • OyczEO Offline
      OyczE
      last edited by m5-docs

      Hi there !
      there is any plans to add support for https://docs.m5stack.com/#/en/module/encoder inside the Ui Flow ?

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

        From what I understand, the faces units are aimed more towards industrial and so are unsupported in UIFlow.

        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
        • L Offline
          LastCaress
          last edited by

          I think it'd be possible to write custom blocks for it

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

            If you do it, or start it, post it in the Projects forum.
            UIFlow is built on Micropython so I sure that you are correct.

            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
            • L Offline
              LastCaress
              last edited by

              I figured out how to read the values from the encoder. My encoder is kinda crappy though, always a bad connection

              1 Reply Last reply Reply Quote 0
              • L Offline
                LastCaress
                last edited by

                So, in flow:

                import i2c_bus
                i2c_l = i2c_bus.get(i2c_bus.PORTA)
                b = str(i2c_l.readfrom(0X5E,3))
                moving = b[4:6]
                clicking = b[8:10]

                I'm sure there's a better way to do this (with proper encoding). Clicking returns "1" if there is no clicking and "0" if there is. moving forward is 1,2,3,4,5 depending on speed and ff,fe,fd, etc... if it's going backwards.
                Should be simple to do a blocky version of this!

                1 Reply Last reply Reply Quote 1
                • m5-docsM Offline
                  m5-docs
                  last edited by

                  Yes, you can custom serials of blocks for FACES Kit.

                  M5Stack documentation URL

                  https://docs.m5stack.com

                  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