I don't know which Arduino you have and if you are wanting to output this over a hardware serial port or by using SoftwareSerial.
But that only matters for the init. That is for the hardware Serial port you would, have something like:
Code:
Serial.begin(2400)
#define SSCSerial Serial
At the start of your program
For Software Serial you would need to import the library, define an instance of it using 2 IO pins (One input and one output)
Code:
#include <SoftwareSerial.h>
SoftwareSerial SSCSerial(cSSC_IN, cSSC_OUT);
#define MySerial SSCSerial
SSCSerial.begin(2400);
OK once you have the serial object init, you can now output to it. Several ways to do it, but for your instance two lines will do it. Note: In the above definitions, For the hardware version I equated SSCSerial with the specific hardware port. I often do this as to allow me to abstract away which hardware port I am using or if I am using a software serial port. In that way I can use it on several different Arduinos or the like without having to change the code... Wish I could do something like that with basic (Slightly off topic)
Code:
SSCSerial.write("C");
SSCSerial.write(150); // simply output a single byte with a value of decimal 150 or hex 96
Note: In many Basic Micro programs, you will see something like:
Code:
serout ... ["This is a string", 13]
The 13 at the end is a Carriage Return. On an Arduino, you often would do this with the println member, like
Code:
SSCSerial.println("This Is a String"]
See the Arduino reference for more details about the Serial class: file:///C:/arduino-1.0/reference/Serial.html
Kurt