Using SPI1 instead of SPI #685
Unanswered
EduanShuda
asked this question in
Q&A
Replies: 2 comments 1 reply
-
The error is a bit subtle but indicates the issue. The method |
Beta Was this translation helpful? Give feedback.
1 reply
-
I would also like to know how to use SPI1 ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I cannot get the standard library to work as it with SPI1. According to the API documentation:
Set SPI interface
Override the default SPI interface used by the library. Must be called before
LoRa.begin()
.spi
- new SPI interface to use, defaults toSPI
This call is optional and only needs to be used if you need to change the default SPI interface used, in the case your Arduino (or compatible) board has more than one SPI interface present.
I want to use SPI1.
In my sketch I have:
#include <SPI1.h>
In setup():
I get this error:
Compilation error: no matching function for call to 'LoRaClass::setSPI(SPI1Class&)'
I have tried everything. Any help will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions