Library NewSoftSerial and use USB Serial

Hi, I have a Scott Edwards LCD backpack. I have had to use the NewSoftSerial library as it SE backpack uses inverted signals.

I am new Arduino and cant work out how to also send data to and throw via the USB serial at the same time.

The programme I am using is below and I can see that it has declared pin 2 and 3 for rx and tx. Is this why I cant send data back to the serial monitor?

Can anyone tell me how to also use the serial monitor via the USB while using this programme.

Thanks
Simon

#include <NewSoftSerial.h>

#define rxPin 2          // unused, but necessary to create 'lcd' object
#define txPin 3

#define INVERTED true    // this is impossible with standard Software Serial library

NewSoftSerial lcd(rxPin, txPin,INVERTED);  // set up a new inverted serial port on pins 2 and 3

void setup() {

  pinMode(rxPin, INPUT);    // define pin modes for tx, rx:
  pinMode(txPin, OUTPUT);
  lcd.begin(9600);

  delay(100);               // necessary to wait after powering up

  lcd.print(254,BYTE);      // 254 is a command prefix
  lcd.print(1,BYTE);        // 1 is a Display Clear command
  delay(10);                // this command takes long time

  lcd.print(254,BYTE);      // for unknown reasons this is
  lcd.print(1,BYTE);        // necessary to repeat 2x
  delay(10);

  lcd.print(254,BYTE);      // 254 is a command prefix
  lcd.print(2 ,BYTE);       // 2 is a Home command
  delay(10);

  lcd.print("Hello, World!");
}

void loop() {
  lcd.print(254,BYTE);
  lcd.print(192,BYTE);        // set the cursor to column 0, line 1

  lcd.print(millis()/1000);   // print the number of seconds since reset:

}

Scott Edwards LCD backpack

Do you have a URL to a datasheet?

To print something to the Serial Monitor of the Arduino IDE one can simply use :

Serial.begin(9600); Serial.println("Hello World");

See: - http://arduino.cc/en/Reference/Serial for the details

Thanks. That worked great.