dparson55 / NRFLite

nRF24L01+ library with AVR 2 pin support, requiring very little code along with YouTube videos showing all available features.
MIT License
161 stars 26 forks source link

RP2040 support #74

Closed sweshn closed 2 years ago

sweshn commented 2 years ago

Today I use NRFlite for a project with 4 nodes with Arduino Mega that have worked fine for long period now.

I have tried to use PR2040 instead. I have changed definition for SPI pins still no sucess.

Regards Staffan

dparson55 commented 2 years ago

What pin numbers did you try that did not work?

I looked around and discovered you can set your own SPI pins as described here https://arduino-pico.readthedocs.io/en/latest/spi.html Maybe doing that will help.

Also during the search it seems there are a lot of pins labeled for SPI (https://forums.raspberrypi.com/viewtopic.php?t=320933) so you might just have to experiment since it doesn't look straightforward. I found this pinout that shows all the possibilities when it comes to SPI:

image

From this documentation (https://docs.arduino.cc/tutorials/nano-rp2040-connect/rp2040-01-technical-reference) here are the pins that I would initially try.

image

dparson55 commented 2 years ago

@sweshn Any luck?

dparson55 commented 2 years ago

Closing due to lack of response.

sweshn commented 2 years ago

Sorry for bad response !! I have problem with uploading sketches to RP2040 . Will solve that and after that continue with NRF lite.