I am using 2 Arduino nano boards and want to implement full duplex data transfer between them..by using GPIO pins. Both devices can send or receive data. See diagram. Let the initial I/O configuration be clk - output, tx- output, rx- output.
Scenario- when device 1 wants to send data to device 2 on tx pin, then the tx pin of device 2 should be configured to input.
Now during program execution, if I change the configuration of tx pin of device 2 to input, it does not receive data from device 1.
How to correct this?
There are available protocols that can be used for this but I was just trying to do something own d different.