This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SPI.h> | |
| #include <nRF24L01.h> | |
| #include <RF24.h> | |
| #define DEVICE_ID 2 | |
| #define CHANNEL 1 //MAX 127 | |
| // SPI pin configuration figured out from here: | |
| // http://d.av.id.au/blog/esp8266-hardware-spi-hspi-general-info-and-pinout/ | |
| RF24 radio(2, 15); // Set up nRF24L01 radio on SPI bus plus pins 2 for CE and 15 for CSN |