Guest User

Untitled

a guest
Aug 4th, 2015
212
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup()
  2. {
  3.     // Start up
  4.     nRF905_init();
  5.    
  6.     // Set address of this device
  7.  
  8.     // Read in 4 bytes from EEPROM
  9.     byte addr[4];
  10.     for(byte i=0;i<4;i++)
  11.     {
  12.         byte val = EEPROM.read(i);
  13.         addr[i] = val;
  14.     }
  15.  
  16.     nRF905_setRXAddress(addr);
  17.  
  18.     // Put into receive mode
  19.     nRF905_receive();
  20.  
  21.     Serial.begin(9600);
  22.    
  23.     Serial.println(F("Client started"));
  24. }
RAW Paste Data