Multiple .write() slow ?
in
Core Library Questions
•
2 years ago
I need to send a high rate of data to my arduino.
Sending calling more than one .write() call in my loop seems to be dramatically slowing my processes.
Sending calling more than one .write() call in my loop seems to be dramatically slowing my processes.
my first call would return about 80fps:
myport.write(hex("#ff9900",6));
if I add in another call it slows to 30 fps:
myport.write("N");
myport.write(hex("#ff9900",6));
if I put all values into one call, and even add more data I get my 80 fps back again:
myport.write("N" + i + hex("#ff9900",6));
does this seem odd to anyone? Is there an easy fix?
1