 
  
 #include <util/delay.h>
-#include <avr/wdt.h>      // Watchdog
+//#include <avr/wdt.h>      // Watchdog
 #include <avr/sleep.h>    // Sleep Modes
 #include <avr/power.h>    // Power management
 #include <VirtualWire.h>

  pinMode(PIN_TX, OUTPUT); 
  pinMode(PIN_WAKEUP_SELF, INPUT);
  pinMode(PIN_WAKEUP_MASTER, OUTPUT); 
  
  digitalWrite(PIN_WAKEUP_MASTER, LOW);

  //TinyWireS.begin(I2C_SLAVE_ADDR);
  
  // pin change interrupt (example for D4)
  PCMSK  |= bit (PCINT4);  // want pin D4 / pin 3
  GIFR   |= bit (PCIF);    // clear any outstanding interrupts
  GIMSK  |= bit (PCIE);    // enable pin change interrupts 
  
 
  vw_set_ptt_inverted(true); // Required for DR3100
  vw_setup(2000);      // Bits per sec
  vw_set_tx_pin(PIN_TX);
    
  //watchdog_setup();
  
}

void loop()
{
  
  int ldr_val = digitalRead(PIN_WAKEUP_SELF);

  digitalWrite(LED_DEBUG, HIGH);
  
