Skip to content
Discussion options

You must be logged in to vote

As to why are you seeing the -2, my first guess would be incorret SPI interface, as currently it will use the default SPI - you can select a diffent one as described on this wiki page.

Yes, I had seen that, but wasn't sure what I would need to make it work. I have dug up the correct information and am providing it below for anyone else that ever needs it:

// SPI (LoRa)
#define LORA_CLK  5
#define LORA_MISO 19
#define LORA_MOSI 27

#define LORA_CS   18
#define LORA_RST  23
#define LORA_DIO0 26
#define LORA_DIO1 33
#define LORA_DIO2 32

SPIClass spi(VSPI);
SPISettings spiSettings(2000000, MSBFIRST, SPI_MODE0);

SX1278 radio = new Module(LORA_CS, LORA_DIO0, LORA_RST, LORA_DIO1, spi, spiSet…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fhendrikx
Comment options

Answer selected by fhendrikx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants