🤖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

    FACES Kit
    4
    7
    10.4k
    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.
    • MatiM
      Mati
      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
        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
          LastCaress
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • ajb2k3A
            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
              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
                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
                  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
                  • First post
                    Last post