Closed smolbun closed 1 year ago
You can enable debug mode to get more information abtou what exactly is failing: https://github.com/jgromes/RadioLib/wiki/Debug-mode
Also, are you sure you are using the SPI correctly? You have set the default SPI, SPI settings and SPI begin, so how exactly are you "using custom SPI pins"?
Thanks for the reply, I do not want to use the default SPI pins, I want to set it according to
#define SCK_PIN 2
#define MISO_PIN 4
#define MOSI_PIN 3
how would I do that? [edit] with reference to the pinout diagram
how would I do that
That's up to your chosen platform. I don't know which Arduino core for Raspberry Pi Pico you are using - the official one (https://github.com/arduino/ArduinoCore-mbed) or the unofficial one (https://github.com/earlephilhower/arduino-pico)?
Either way, you will have to search the documentation for the Arduino core you are using to find this out.
Closing due to inactivity.
I'm confused on where to get started using custom SPI pins, apologize if I've missed something. I've edited the example transmit code for the CC1101. gdo0 --> 14 gdo2 --> 15
I got this error:
[CC1101] Initializing ... failed, code -2