Nordic nRF24L01 for the electric imp

Hi,

I’ve just ported the mirf / RF24 library from Arduino for nRF24L01 transceiver to the electric imp…

I’ve implemented most of the basic functions/features and will be adding more functions and features to be compatible with the RF24 as most of my other devices, Arduino, Raspberry Pi and attiny85 were running/compatible with RF24 library…

The repo and documentations is at : https://github.com/stanleyseow/electricimp-nRF24L01

Would appreciate if anyone could help to test the codes, suggest improvement/performance optimization to the codes as I have not implemented much OOP coding…

This is my second coding for the electric imp after the first hello world blink program, so I’m still not sure on how to do a loop with the sleep/wake timer…

Updated some codes and fixed the node address issue…

Got the radio.sent() working with RF24 Arduino/RaspberryPi libraries…

Github repo updated on 29/04/2013…

How do I have InputPort send a string of characters into the buffers ?? I still do not understand the concept of the Input/Output port after reading the example codes a few times…

From the code below, I want to have InputPort (from planner) copy the strings into the buffers array… so that my transceivers can sent it out via SPI…

`
buffers <- [48,49,50,51,52];

class impeeIn extends InputPort {
name = “RF24In”;
type = “number”;

function set (value) {
    
//buffers = c;
}

}
`

You probably want to be on agents because sending arbitrary data through an HTTP in node is a pain… email info@electricimp.com

TX and RX working with RF24 libs examples ( https://github.com/stanleyseow/RF24/tree/master/examples )

github repo updated ( https://github.com/stanleyseow/electricimp-nRF24L01 )