Giter Club home page Giter Club logo

Comments (3)

s07dd avatar s07dd commented on July 22, 2024 2

My bad, I hadn't taken a look in the documentation that you mentioned above.
&SPI1 inside the bracket is all that was required. 😂 I'm a complete noob.
Everything works flawlessly now!
Always grateful to you guys, you do so much for the community
Your work cannot be appreciated enough
Thanks a ton for your help!!!!

from rf24.

2bndy5 avatar 2bndy5 commented on July 22, 2024

The PicoSDK docs have a table outlining the GPIO pins' capabilities. According to that table, the pins you selected seem correct.

Did you pass the SPI1 object to radio.begin()?

   SPI1.setRX(8);
   SPI1.setTX(11);
   SPI1.setSCK(10);
   SPI1.begin();
   if (!radio.begin(&SPI1)) {
      return 1; // radio hardware not responding
   }

Did you review our doc about using the Arduino platform with a secondary SPI bus?


I'm not sure if you read the Arduino-Pico core docs, but I'll put that in here as well: the SPI library docs for the Arduino-Pico core.

from rf24.

2bndy5 avatar 2bndy5 commented on July 22, 2024

From the Arduino-Pico docs:

the following RP2040-specific changes:

  • SPI.begin(bool hwCS) can take an options hwCS parameter.

By passing in true for hwCS the sketch does not need to worry about asserting and deasserting the CS pin between transactions. The default is false and requires the sketch to handle the CS pin itself, as is the standard way in Arduino.

So, passing false would be preferable since the RF24 library takes care of the CSN pin independently from the other SPI pins.

    // let RF24 lib manage the CSN pin

    SPI1.begin(false);
    // or equivalently 
    SPI1.begin();

from rf24.

Related Issues (20)

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.