I would like to switch between digitalWrite() and serial1.write() in Arduino Due.
However, Serial1.write() from digitalWrite() will not be able to communicate properly.
If you send serial data, the first transmission will succeed, but 0 will be sent after the second transmission.
By the way, Arduino Mega can switch and communicate.
I would like to know the cause and how to make the following ideal reception data.
この This target Due is communicating with another Due, Serial1 tx/rx, and the other Due is sending the data received in Serial1 to the serial monitor of the PC connected by a USB cable in hexadecimal.