Changes between Version 74 and Version 75 of WikiStart


Ignore:
Timestamp:
2013-09-27 14:04:25 (11 years ago)
Author:
hek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v74 v75  
    5151  {{{#!cpp 
    5252#include <SPI.h>   
    53 #include <nRF24L01.h> 
    5453#include <RF24.h> 
    5554#include <Vera.h>   
     55#include <EEPROM.h> 
     56 
     57 
     58// Set RADIO_ID to something unique in your sensor network (1-254) 
     59// or set to AUTO if you want vera to assign a RADIO_ID for you. 
     60#define RADIO_ID AUTO 
    5661 
    5762// Create RF24 library instance using pin 9,10 which is what I've described how to hook up the radio module in this wiki. 
    5863RF24 radio(9,10);  
    5964 
    60 // Create a Vera library instance with radio id <radioId>. This should be a value between 1-255.  
    61 // You cannot share radioId between two arduino sensors. In this example we use radioId 42 
    62 Vera sensors(42, &radio);  
     65// Create a Vera library instance 
     66Vera sensors(RADIO_ID, &radio);  
    6367 
    6468void setup()