Giter VIP home page Giter VIP logo

rf24_plus_softspi's Introduction

rf24_plus_softSPI

This is a modified version of maniacbug's rf24 library. It allows you to use rf24 over softSPI while using another SPI peripheral. The SoftSPI library is by William Greiman. The only modifications I've made here are to create a soft spi addressable nrf24l01 instance. I used instructions provided in this arduino thread: http://forum.arduino.cc/index.php?topic=200122.15 by user nicoverduin.

To use, copy each folder to your Arduino Libraries folder. Then select 'Import Library' in Arduino like you would for any other library.

The default settings are MISO- pin 16, MOSI- pin 15, SCK- pin 14, but you can change this by going into your rf24.h file in the RF24Soft folder and modifying the lines:

const uint8_t SOFT_SPI_MISO_PIN = 16; const uint8_t SOFT_SPI_MOSI_PIN = 15; const uint8_t SOFT_SPI_SCK_PIN = 14;

Note: I have found that I sometimes need to remove the modified libraries from my Arduino libraries folder in order to get the regular SPI version of rf24 to work again. I have not yet investigated the cause of this.

These libraries have allowed me to use a wiznet ethernet shield with an nrf24l01 simultaneously. If anyone has a better way to do this, I would like to see it, but this has worked well for me so far.

-shnae

rf24_plus_softspi's People

Contributors

shnae avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.