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

    RoverC Pro Hat, Stick C, and servo in UIFlow 1.7.2

    Bug Report
    3
    4
    4.0k
    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.
    • T
      tross4s
      last edited by

      I am not able to find the method to drive the gripper servo within the hat using UIFlow. There are only 3 methods available in UIFlow:

      • Set the wheel pulse
      • Set wheels pulse for all wheels
      • Set RoverC speed

      Thanks.

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

        Have you tried using a servo unit on port A?

        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
        • T
          tross4s
          last edited by

          This code worked for me:
          from m5stack import *
          from m5ui import *
          from uiflow import *
          import i2c_bus
          import hat

          setScreenColor(0x030545)

          hat_roverc1 = hat.get(hat.ROVERC)
          label0 = M5TextBox(57, 6, "RoverC", lcd.FONT_DejaVu40, 0x01e2b1, rotate=90)

          i2c0 = i2c_bus.easyI2C(i2c_bus.PORTA, 0x38, freq=400000)
          i2c0.write_mem_data(16, 80, i2c_bus.UINT8LE)

          1 Reply Last reply Reply Quote 0
          • IAMLIUBOI
            IAMLIUBO
            last edited by

            Hi @tross4s ,
            Sorry for that.We wiil update it ASAP.

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