Ok, I understand.
The Serial.print statement, is it possible to group a bunch of data all together and then send it using one print statement, rather than having to have say 10 print statements, one after each other?
ie in Bascom AVR, you can do the following:
Print Command1 ; Command2 ; "," ; Value ; "," ; Value2 ; "," ; Index
whereas in Arduino IDE it seems I have to do the following:
Serial.print(Command1);
Serial.print(Command2);
Serial.print(",");
Serial.print(Value1);
Serial.print(",");
Serial.print(Value2);
Serial.print(",');
Serial.print(Index);
I dont know though if multiple print commands is slowing the processing down, or if its purely the fact that I am actually sending more data?
I am just trying to figure out how I should do this, as I need to sample these pulses as they come in, then perform a calculation on them, and then send the result out to the serial port. But I just dont know if I am doing it the most efficient way or if there is a better way to do it...
hmm.