Receptor (RX - Nikon):
#include
#include
Nikon D5000(11); Yo uso Nikon (por favor utilizar el código que funciona con tu DSLR)
void setup() {}
vw_set_ptt_inverted(true);
vw_set_rx_pin(12);
vw_setup(4000);
vw_rx_start();
unsigned int datos = 0;
pinMode (13, salida);
pinMode (11, salida);
}
void loop() {}
uint8_t buf [VW_MAX_MESSAGE_LEN];
uint8_t buflen = VW_MAX_MESSAGE_LEN;
Si (vw_get_message (buf & buflen)) {}
{if(BUF[0]=='1')}
digitalWrite(13,1);
D5000.shutterNow();
}
{if(BUF[0]=='0')}
digitalWrite(13,0);
}
}
}