 //
 #define FREQ_HZ 433575000   // 433.575 MHz
 
-unsigned int counter = 0;
-
 //
 // On Lora32 module, OLED reset signal is connected to gpio16.
 //
 Adafruit_SSD1306 display(16);
+
+//
+// Timing for 10 words per minute.
+//
+int dot_msec   = 120;
+int dash_msec  = 360;
+int pause_msec = 360;
+int space_seen;
 
 void setup()
 {

    digitalWrite(LED, LOW);
}

void loop()
{
    counter++;
    display.clearDisplay();
    display.setCursor(0, 20);
    display.print("Send ");
    display.print(counter);

    display.setCursor(0, 42);
    display.print(LoRa.getSignalBandwidth());
    display.display();

    // Measure timing.
    unsigned long t0, t1, t2, t3, t4, t5, t6, t7;
    t0 = micros(); send(300); t1 = micros(); delay(300);
    t2 = micros(); send(100); t3 = micros(); delay(300);
    t4 = micros(); send(100); t5 = micros(); delay(300);
    t6 = micros(); send(300); t7 = micros(); delay(900);

    Serial.printf("%u: %u %u %u %u %u %u %u %u\r\n", counter, t0, t1, t2, t3, t4, t5, t6, t7);
}

    display.setTextSize(1);
    display.setTextColor(WHITE);
    display.setCursor(0, 20);

    // Visualize the result.
    display.display();
}

void beep(int msec)
{
    // Compute preamble length of required duration.
    // To measure the timing, use plen = msec.
