You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,21 @@ LoRaNow.setPins(ss, dio0);
27
27
28
28
This call is optional and only needs to be used if you need to change the default pins used.
29
29
30
+
### Set pins SPI
31
+
32
+
Override the SPI pins and the default `SS`, and `DIO0` pins used by the library. **Must** be called before `LoRaNow.begin()`.
33
+
34
+
```c
35
+
LoRaNow.setPinsSPI(sck, miso, mosi, ss, dio0);
36
+
```
37
+
*`sck` - new sck pin to use for SPI communication
38
+
*`miso` - new miso pin to use for SPI communication
39
+
*`mosi` - new mosi pin to use for SPI communication
40
+
*`ss` - new slave select pin to use, defaults to `10` or `gpio16`
41
+
*`dio0` - new DIO0 pin to use, defaults to `2` or `gpio15`. **Must** be interrupt capable via [attachInterrupt(...)](https://www.arduino.cc/en/Reference/AttachInterrupt).
42
+
43
+
This call is optional and only works on ESP32 platform.
0 commit comments