-
Hello! I'm willing to test LoRaWAN code on Rasperry Pico + Waveshare Pico-LoRa-SX126X HAT. However only output I can produce at the moment is I tried LoRaWAN_End_Device.ino from examples. The Lora HAT is this exact model: I'm not sure if I must adjust pin order from default? I tried different pins based Waveshare Wiki page, but it's always same. Maybe I'm missing something trivial... or is this specific LoRaWAN Hat supported at all? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
You have to provide the correct pinout. The library can run on any hardfware, how should it know which pins to use? Taht is up to you to configure. The pinout is on the page you linked. I don't know what is the default SPI the Pico uses, if the hat is using a different one you will have to configure it as well - see: https://github.com/jgromes/RadioLib/wiki/Basics#non-standard-spi-setup
The hat doesn't matter - it's SX1262 which is supported, and Raspberry Pico which is also supported.
And which SDK are you using? The official Arduino one? The unofficial Arduino one? Or plain Pico SDK with some hardware abstraction layer? For the latter tehre is currently an open PR. |
Beta Was this translation helpful? Give feedback.
You have to use hardware SPI device 1 instead of 0 for this combination, see also: #729 (comment)
SX1262 radio = new Module(3, 20, 15, 2, SPI1, RADIOLIB_DEFAULT_SPI_SETTINGS);
are the correct pins.