Page 1 of 1

Updated nRF24L01 include library

Posted: Wed Feb 14, 2007 7:18 am
by brennen
There is a new version of this software. It is considerably easier to use and implement for nearly any microcontroller. Please see this post: viewtopic.php?t=6855


Hey guys. After working with my 24L01's again, I have made a lot of revisions to my include library. I made it clear the user-written functions that are needed for SPI and delay, and I also implemented a large number of new functions. I also fixed a couple of bad #defines I had in the old header file. Feel free to use them and give me feedback.

nrf24l01.h, nrf24l01.c

include file

Posted: Sun Feb 18, 2007 4:16 pm
by ssaguiar
In your nrf24l01.h file , there is an include statement:

#include "lpc214x.h"

Is this a compiler include file? If not how can I download it?


Thank you.


Sergio

Posted: Sun Feb 18, 2007 5:25 pm
by brennen
This is the include file for my specific processor. It contains all the defines for the registers on the processor. Therefore, change this include file to whatever include file you have for your processor's registers. Alternatively, you can try to just comment out or remove the statement once you change your other defines and see if it compiles. If the compiler still says you're missing definitions, then you will have to try including your processor's include file.

pleze help me

Posted: Tue Mar 06, 2007 6:01 pm
by aminkhalid
hello,i'm new here...is there anyone who did nrf24l01 based on PIC microC?

Posted: Tue Mar 06, 2007 6:12 pm
by brennen
To my knowledge no. Although I can't imagine that this code wouldn't work with your compiler as long as you set up your #defines correctly in the .h file. Let me know if you have any questions if your compiler complains or the code doesn't work.