9 years, 8 months ago.

Porting Arduino libraries

I would like top port arduino RF24Mesh library for nrf24l01 radio, http://tmrh20.github.io/RF24Mesh/, What sould be the steps I should follow?

1 Answer

9 years, 8 months ago.

the mesh libraries probably wont be the issue here - the low level libraries that talk to the nRF24L01 chip will be:

http://playground.arduino.cc/InterfacingWithHardware/Nrf24L01

the PINs are pretty easy to match up against the board that you are working with. in most cases; this is pretty much all you need to do with most of the libraries. i recently tweaked an arduino ethernet shield to work on the nRF51-DK.. i wrote up a blog post on the topic..

http://evothings.com/how-to-use-an-arduino-ethernet-shield-with-the-nordic-semiconductor-nrf51-dk/

it was purely about identifying which PINS to use for the SPI channel and how to interface with it. you'll be doing something similar in this case. you'll need to match up against the DigitalIn/Out and AnalogIn/Out classes.. it isn't a lot of work thankfully :)