RoverC Pro Hat, Stick C, and servo in UIFlow 1.7.2
-
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.
-
Have you tried using a servo unit on port A?
-
This code worked for me:
from m5stack import *
from m5ui import *
from uiflow import *
import i2c_bus
import hatsetScreenColor(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) -
Hi @tross4s ,
Sorry for that.We wiil update it ASAP.
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