Hi there,
I want to send Int data from GUI(C#) to an Arduino
when I used Serial.parseInt(), it takes longer than when I used Serial.read()
but when I used Serial.read(), it will convert the data to ascii
how can I send Int data to Arduino faster??
Hi there,
I want to send Int data from GUI(C#) to an Arduino
when I used Serial.parseInt(), it takes longer than when I used Serial.read()
but when I used Serial.read(), it will convert the data to ascii
how can I send Int data to Arduino faster??
how can I send Int data to Arduino faster??
Pay attention to what causes Serial.parseInt() to stop reading data. Make sure that you send appropriate data. "123" will cause parseInt() to wait for the end of the integer value. "123." will return very quickly, because the integer value's end was found. Carriage returns and line feeds also make good delimiters.