This file contains 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
// see https://gist.github.com/natevw/5789019 for pins | |
var NRF24 = require("./index"), | |
spiDev = "/dev/spidev0.0", | |
cePin = 24, irqPin = 25, //var ce = require("./gpio").connect(cePin) | |
pipes = [0xF0F0F0F0E1, 0xF0F0F0F0D2], | |
role = 'pong'; // ping or pong | |
var stream = require('stream'), | |
util = require('util'); |
This file contains 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
/* | |
// March 2014 - TMRh20 - Updated along with High Speed RF24 Library fork | |
// Parts derived from examples by J. Coliz <maniacbug@ymail.com> | |
*/ | |
/** | |
* Example for efficient call-response using ack-payloads | |
* | |
* This example continues to make use of all the normal functionality of the radios including | |
* the auto-ack and auto-retry features, but allows ack-payloads to be written optionlly as well. | |
* This allows very fast call-response communication, with the responding radio never having to |