  * This example transmits data on hardcoded channel and receives data
  * when not transmitting. Running this sketch on two nodes should allow
  * them to communicate.
- *
- * WARNING: This sketch almost certainly violates duty cycle limits,
- * since it bypasses the LoRaWAN stuff and directly talks to the
- * transceiver.
  *******************************************************************************/
 
 #include <lmic.h>

  delay(1000);
  #endif

  #ifdef LED_RED
  pinMode(LED_RED, OUTPUT);
  pinMode(LED_GREEN, OUTPUT);
  pinMode(LED_BLUE, OUTPUT);
  digitalWrite(LED_RED, LOW);
  digitalWrite(LED_GREEN, HIGH);
  digitalWrite(LED_BLUE, HIGH);
  #else
  pinMode(LED_BUILTIN, OUTPUT);
  #endif

  // initialize runtime env
  os_init();

  // Set up these settings once, and use them for both TX and RX

  // Use the ping settings. In 868Mhz, this is F6 frequency which allows
  // 10% duty cycle and the most tx power (27dBm). In 868 this is
  // channel 0, which allows up to 30dBm.
  LMIC.datarate = DR_PING;
  LMIC.freq = FREQ_PING;
  LMIC.txpow = 27;
  LMIC.rps = updr2rps(LMIC.datarate);

  Serial.println("Started");


void loop() {
  // execute scheduled jobs and events
  os_runloop_once();
}
