  
 
 #define LED_DEBUG 13
-#define PIN_TX 12
+#define PIN_TX 6          // PD6
 #define PIN_PERIF_POWER 7 // PD7
 
 #define PIN_LDR_LEFT  2 // PC2

        vw_send((uint8_t *)msg, strlen(msg));
        vw_wait_tx(); // Wait until the whole message is gone
        ++msgId;
    }
}


  wdt_reset();
}

void goToSleep(byte flag)
{
  sleep_flag = flag;
  
  // Power down the periferals
  digitalWrite(PIN_PERIF_POWER, HIGH);
  
  cli();
  
  
  // disable ADC
  ADCSRA = 0;  
  
  set_sleep_mode(SLEEP_MODE_PWR_DOWN);

  if (sleep_flag == SLEEP_FLAG_DARK) {
    // Turn off watchdog
    wdt_disable();
    // Attach the external interupt to the LDR.
    attachInterrupt(0, wakeUp, HIGH);
  }

  power_all_disable();  // power off ADC, Timer 0 and 1, serial interface
  sleep_enable();
