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.
[image: 1618134404005-m5stack-basic-with-goplus2-resized.png]
[image: 1618134467310-pxl_20210411_094123026-resized.jpg]