SX12XX-LoRa
SX12XX-LoRa copied to clipboard
Possibility to use different SPI devs (SPI1, SPI2)
Some hardware have several SPI devs, for instance Teensy 3.x, 4.x. Current implementation of LoRa library allows to use only first SPI dev, this fix add new method setSpi(SPIClass& spi) to allow different SPI dev to be used. By default main spi dev is used (SPI), but it is possible to use other:
LT.setSpi(SPI1);
I will take a look at the suggestion, however it would require a fair bit of testing across all 3 libraries.
Which Arduinos support multiple SPI ports in this way ?
Thanks, super!
Which Arduinos support multiple SPI ports in this way ?
For instance Teensy 3.x, Teensy 4.x. There are several SPI (s): SPI, SPI1, SPI2. So hardcoded SPI in the code leads to the situation when SPI1 cannot be used with the library.
I really meant to say, is there a geniune Arduino that supports multiple SPI ports in this way ?
As example I could provide the following link: https://learn.adafruit.com/using-atsamd21-sercom-to-add-more-spi-i2c-serial-ports?view=all