For a project I have 2 arduino's. The input/output is serial and the connection is I2C.
So the communication between both boards are if they are connected via serial.
When serial input is coming on #1 the I am writing from #1 the Master_Writer using Write.write.
When there is no input the it must become a Slave_Receiver.
For receiving on #2 I am using Wire.onReceive(). This last one is an interrupt routine.
But...I have also serial input on #2 and this I want to send to #1 via I2C.
So #2 as Slave_receiver must change to Master_Writer.
Now my question is, what is the right way to change from Slave_Receiver to Master_Writer