I am trying to understand how the serial ports are configured on the due board. Please correct me if i'm wrong, but to my understanding, the due has:
- Four separate serial ports ("serial", and "serial 1-3"), each with SX and TX pin functions
- A USB port paired with serial, simultaneously sending and receiving data from the serial function via USB protocol
I'm currently sending MIDI data over serial1 with the required baud rate of 31250. I want to configure another serial function (assumingly with a different baud rate to match the IDE serial monitor) in order to monitor Serial.print messages simultaneously for debugging.
Serial1.begin(31250); //MIDI baud rate Serial.begin(115200);
and then, in a for loop i want to monitor each value i in the array loop1[i]):
Serial.print(String(loop1[i]) + " ");
However, i can't seem to make it work... My question is, is it possible to transmit the MIDI data via serial, in parallel with serial.print data with a separate serial function?