Sending arrays serially

The problem is you don't have space for many libraries on a microcontroller, so just the basics are offered. If you can send one byte you can loop it and send a block of bytes, so code space isn't wasted on a function to send a block.

One way to solve your problem is:

#define MAX 127
int i, data[MAX];

...

for (i=0; i<MAX; i++)
{
  Serial.print(data[i] >> 8, BYTE);
  Serial.print(data[i] & 0xFF, BYTE);
}

Another way would be to use a pointer to a byte, copy the starting address of the array to the pointer and loop through it byte-by-byte. That would be a bit more complex.

-j