Jump to content
Sign in to follow this  
reaper7

[Energia Library] StellarPad Mirf (nrf24l01+) library

Recommended Posts

Based on original Arduino Mirf library with some modifications on hardware spi.

Works well with other devices on the same spi bus eg 5110 lcd

 

New version 0.4 [28.04.2013]:

1. For clarity *.ino files I decided to move SPI initialize to library.

from now declaration of parameters should look like this: Nrf24l Mirf(CSN_PIN(def.PA_7), CE_PIN(def.PA_6), CHANNEL(def.1), PAYLOAD(def.16), SPI_MODULE(def.2));

eg.:

- Nrf24l Mirf(PA_7, PA_6, 1, 16); //DEFAULT SPI module 2

- Nrf24l Mirf(PA_7, PA_6, 1, 16, 3); //SPI module 3

 

SPI speed is defined in Mirf.cpp file (line 66), maybe more sense is move SPI speed to declaration too?

 

Mirf_v0.4.zip

Mirf_v0.3.zip

Share this post


Link to post
Share on other sites

Based on original Arduino Mirf library with some modifications on hardware spi.

Works well with other devices on the same spi bus eg 5110 lcd

Good work. Thanks for sharing this. If you are interested in developing drivers for other sensors and stuff, let me know, I'll see if I can sponsor you.

Keep them coming.

Share this post


Link to post
Share on other sites

If I want to connect between Stellaris launchpad and MSP430 launchpad. Can I use this library at stellaris end while running some other receiver at the MSP430 end?

Share this post


Link to post
Share on other sites

Pradeepa_kck,

I have already got two 430 talking to each other using the Enrf24.h lib and in the process of hooking in the Sellaris  with Mirf lib. So give me a few days and I should have a result.

Grant

Share this post


Link to post
Share on other sites

Good day, I'm interesting on your library, but I have a launchpad msp430g whith msp430g2553 microcontroller, I have tried to set your library, but not run me, you can help me?

Share this post


Link to post
Share on other sites

I'm getting this error when I compile .
 

C:\Users\OWNER\Documents\Energia\libraries\Mirf\MirfHardwareSpiDriver.cpp: In member function 'virtual void MirfHardwareSpiDriver::begin()':
C:\Users\OWNER\Documents\Energia\libraries\Mirf\MirfHardwareSpiDriver.cpp:9:22: error: 'SPI_2XCLOCK_MASK' was not declared in this scope

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...