Need help updating outdated code to Arduino 1.0.1

Hello all,

I’m trying to update a code from an older Arduino environment to 1.0.1 (I’m also using Arduino R3). The problem I’m having is understanding how to change following Serial related code parts:

(This part seems to be fine, after I updated include to SoftwareSerial)

#include <SoftwareSerial.h>
#define SerInToArdu 8
#define SerOutFrmArdu 12
SoftwareSerial mySerialPort(SerInToArdu,SerOutFrmArdu);

The BYTE seems to be discontinued, so would it work to do mySerialPort.print(0x77); or does it have to change .print to .write or even value isn’t correct?

mySerialPort.print(0x77, BYTE);

I read that Serial.print changed to .write, does the same apply to .println? If so, would Serial.print ("Repeat = "); work just by changing Serial.print to Serial.write (leaving the bracketed value as it is) ?

Serial.print ("Repeat = ");
Serial.println (repeatcount);

Edit Forgot to mention, this is to do with making a 7-segment serial display to work from sparkfun. (http://www.sparkfun.com/products/9766)

Byte → char

Same thing.

The best alternative to Serial.print(n,BYTE); is:

Serial.write((byte)n);

TCWORLD:
The best alternative to Serial.print(n,BYTE); is:

Serial.write((byte)n);

Thanks that worked.