robowarner:
I could make an array, but I was just wondering if there was an easier way.
I'm not sure why you refer to 'making' an array for the purposes of transmitting it. Presumably you expect to already have your data in some form by the time you need to write it to the serial port.
If you've got it stored in an array (or any other contiguous memory) then you can call write once to send the whole lot. If your data is scattered in separate variables then you can write them separately. Which way is easier in a given situation depends on how you have stored the data.
Like I showed with the PBASIC code (SEROUT pin, Baud, [$1F, $28, $66, $11,$55] ), I just need to send some bytes. They don't need to be variables, as they aren't changed in the program.
Is there a way to do this?
I'm trying to make a serial VFD display display a graphic, which I can do on the Basic Stamp 2.
Given that your data is in a byte array, you can call mySerial.write(ledPins, sizeof(ledPins)) to write the whole array in one operation. (Why you would want to write pin numbers to a serial port escapes me, but I assume this was just an arbitrary example.)