Updated nRF24L01 include library

All things pertaining to wireless and RF links

Moderator: phalanx

Post Reply
brennen
Support Volunteer
Posts: 678
Joined: Wed Nov 09, 2005 8:37 am
Contact:

Updated nRF24L01 include library

Post by brennen » Wed Feb 14, 2007 7:18 am

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
Last edited by brennen on Tue Apr 24, 2007 6:05 am, edited 1 time in total.

ssaguiar
Posts: 24
Joined: Mon Feb 05, 2007 6:22 am

include file

Post by ssaguiar » Sun Feb 18, 2007 4:16 pm

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

brennen
Support Volunteer
Posts: 678
Joined: Wed Nov 09, 2005 8:37 am
Contact:

Post by brennen » Sun Feb 18, 2007 5:25 pm

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.

aminkhalid
Posts: 1
Joined: Tue Mar 06, 2007 5:51 pm

pleze help me

Post by aminkhalid » Tue Mar 06, 2007 6:01 pm

hello,i'm new here...is there anyone who did nrf24l01 based on PIC microC?

brennen
Support Volunteer
Posts: 678
Joined: Wed Nov 09, 2005 8:37 am
Contact:

Post by brennen » Tue Mar 06, 2007 6:12 pm

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.

Post Reply