SHARE
TWEET

Untitled

a guest Dec 5th, 2014 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <nRF905.h>
  2. #include <SPI.h>
  3.  
  4. byte data[NRF905_MAX_PAYLOAD];
  5.  
  6. void setup()
  7. {
  8.         nRF905_init();
  9.  
  10.         nRF905_setFrequency(NRF905_BAND_433, 433200000);
  11.  
  12.         nRF905_setData(data, sizeof(data));
  13.  
  14.         nRF905_setTransmitPower(NRF905_PWR_6);
  15. }
  16.  
  17. void loop()
  18. {
  19.         Serial.write(data, sizeof(data));
  20.  
  21.         while(!nRF905_send());
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top