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() {
  uart.begin(9600);
}

// main program loop...
unsigned int count = 0;
void loop() {

   // send counter value via btBUG...
   uart.print("Count = ");
   uart.println(count++, DEC);
   delay(1000);
}