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.