I also connected GoPlus 2 to M5 Basic.
Next, I connected Relay Units to PortB_1 and PortB_2 respectively and confirmed the operation.
UIFlow Block is based on the image posted by ajb2k3_san.
I didn't have to use a block of Relay Units.
0_1618134404725_M5stack Basic with GoPlus2.png
0_1618134468368_PXL_20210411_094123026.jpg