So I need to shift the incoming messages from the 'Serial', translate the message, and out to 'Serial1'. However, the RS232 converter is connected to the 'Serial1' pins. I then want to convert that message to another message my RS232 device wants to see to function. I am receiving MIDI messages from my PC into the Arduino, I assume they are coming in on the 'Serial' Rx pin based on the Rx LED activity. OK, so here's what I am having trouble figuring out. I have the Tx of 'Serial1' connected to the Rx of an RS232 converter, and the converters Tx to the Arduinos Rx on 'Serial1'. I have this set up using Callbacks and ndNoteOn. So, I have my MEGA2560 receiving MIDI messages in via USB, and transmitting another MIDI message out each time it receives that first message (ping). Actually an example would really help me understand the process. I'm hoping someone could guide me in the right direction regarding the correct coding to send and receive data between the 'Serial' and 'Serial1' pins.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |