Wait for Arduino Before Sending Data Over Serial
in
Core Library Questions
•
8 months ago
I'm sending a large volume of data over the serial port to the arduino, which uses it as commands to run stepper motors. The issue, of course, is the serial buffer. I'm having a lot of difficulty figuring out how to have my processing sketch wait until the arduino's serial buffer is empty before sending more data over the serial connection. I'm aware that there's a lot of documentation and examples that are related to the serial library, but I seem to be unable to find any examples that accomplish what I'm trying to do. Surely this has been done in many different circumstances for various projects. Can anyone provide an example?
1