Explanation
This is a program that executes the input,
output, echo back from optional logical port, logical bit.
Please input the input and output commands and the ports or bits, in the case
of output, input the data.
In the state of command-input-wait, input 'q' to exit the program.
Execution example
py inout.py
Execution screen