All Questions
2 questions
0
votes
2
answers
4k
views
Serial.availableForWrite versus Serial.flush
Is there a difference between the following two line codes?
while (Serial.availableForWrite <= 0) {}
versus
Serial.flush()
Thanks!
4
votes
0
answers
716
views
ArduinoDue - Matlab: SerialUSB.write() sends ASCII?
I'm trying to get some binary data from an Arduino Due to Matlab.
Basically this is the setup:
Due:
byte usbMsg[33]= {0};
// filled with dummy as example
usbMsg[1] = '00000001';// in[3];
usbMsg[2] ...