stickyBUG Code

#if defined(__AVR__)
#include <SoftwareSerial.h>
SoftwareSerial uart = SoftwareSerial(2,3);
#else
#include <Timer.h>
#include <TimerSerial.h>
TimerSerial uart = TimerSerial(3,2);
#endif

// program initialisation...
void setup()  
{
  // open ports and set baudrate...
  Serial.begin(9600);
  uart.begin(9600);

  // activate GPS module...
  pinMode(7, OUTPUT);
  digitalWrite(7, HIGH);
}

// main program loop...
void loop() 
{
  // display GPS output...
  if (uart.available())
    Serial.write(uart.read());
}