Comments (3)
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.
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.
From the Arduino-Pico docs:
the following RP2040-specific changes:
SPI.begin(bool hwCS)
can take an optionshwCS
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)
- Can RF24 library be used with WiFi? HOT 4
- [Question] setChannel & setDataRate not read correctly by printPrettyDetails ? HOT 4
- ESP32 Core Panic on radio 0; No panic on Radio number 1, same wiring. How to troubleshoot?[Question] HOT 22
- Use Linux kernel's character device API to implement IRQ capability HOT 113
- [Question] R24.h, testRPD(void) "Strong signal > 64dBm" : "Weak signal < 64dBm" HOT 5
- [Question] Issue using the ManualAcknowledgements.ino HOT 11
- Multiple senders one receiver HOT 1
- reorganize examples HOT 5
- revise MRAA driver's GPIO
- Phasing out most Linux drivers HOT 1
- [Question] Address names used in examples problematic? HOT 8
- Library blocks 11 pin HOT 1
- NRF24L01 does not show all characters in the receiver HOT 4
- Problem using stopListening() and startListening() HOT 3
- [Question] Some modules take way longer to write() HOT 6
- can't find RF24 method inside RF24 module HOT 18
- Change `SERIAL_DEBUG` into `RF24_DEBUG` HOT 7
- Trouble with receiving data on RP2040 HOT 1
- CE set LOW twice consecutively in `startConstantCarrier()` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rf24.