Changes between Version 74 and Version 75 of WikiStart
- Timestamp:
- 2013-09-27 14:04:25 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v74 v75 51 51 {{{#!cpp 52 52 #include <SPI.h> 53 #include <nRF24L01.h>54 53 #include <RF24.h> 55 54 #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 56 61 57 62 // Create RF24 library instance using pin 9,10 which is what I've described how to hook up the radio module in this wiki. 58 63 RF24 radio(9,10); 59 64 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 66 Vera sensors(RADIO_ID, &radio); 63 67 64 68 void setup()