sandeepmistry / arduino-LoRa

An Arduino library for sending and receiving data using LoRa radios.
MIT License
1.63k stars 626 forks source link

MKR WAN 1310 and Ethernet Shield #346

Open alexair777 opened 4 years ago

alexair777 commented 4 years ago

Hey everybody,

I am using a MKR WAN 1310 microcontroller together with an mkr ethernet shield. The shield uses the following pins:

4 | SD CS | Reserved 5 | ETH CS |   8 | MOSI | Reserved 9 | SCK | Reserved 10 | MISO | Reserved

I have seen that the Arduino lora library uses the pins 2, 9, and 10 as default. I am additionally using the pin 2 as output for a 433mhz transmitter. The lora library just needs to be used as a lora receiver.

I have tried to set the pins via the command: "LoRa.setPins(ss, reset, dio0)"

But I just get the message: "Starting LoRa failed!"

Does anybody know, why I can't set the pins correctly?

Thanks so much!