This test sample code is for bidirectional GPIO communication.
When actually using it, you should prepare the Direction signal and decide the side that controls the signal.
GPIO outputs are Open Drain.
PC terminal software receives and displays P0[3:0] and P1[6:3].
Retrieving data ...