Externe ontvanger (RX - Nikon):
#include
#include
Nikon D5000(11); Ik gebruik Nikon (gebruik de code die compatibel is met uw DSLR)
VOID Setup {}
vw_set_ptt_inverted(true);
vw_set_rx_pin(12);
vw_setup(4000);
vw_rx_start();
unsigned int gegevens = 0;
pinMode (13, OUTPUT);
pinMode (11, OUTPUT);
}
void loop {}
uint8_t buf [VW_MAX_MESSAGE_LEN];
uint8_t buflen = VW_MAX_MESSAGE_LEN;
Als (vw_get_message (buf, & buflen)) {}
if(BUF[0]=='1') {}
digitalWrite(13,1);
D5000.shutterNow();
}
if(BUF[0]=='0') {}
digitalWrite(13,0);
}
}
}