kopia lustrzana https://github.com/jgromes/RadioLib
Updated Basics (markdown)
rodzic
7008ae399f
commit
dce54707d6
15
Basics.md
15
Basics.md
|
@ -39,4 +39,17 @@ void setup() {
|
|||
}
|
||||
```
|
||||
|
||||
Please note that SPI bus MUST be initialized prior to calling the `begin()` method!
|
||||
Please note that SPI bus MUST be initialized prior to calling the `begin()` method!
|
||||
|
||||
The same logic can also be applied to change some properties of the default SPI bus, for example:
|
||||
|
||||
```c++
|
||||
SPISettings spiSettings(4000000, LSBFIRST, SPI_MODE3);
|
||||
SX1278 radio = new Module(cs, irq, rst, gpio, SPI, spiSettings);
|
||||
|
||||
void setup() {
|
||||
SPI.begin();
|
||||
(...)
|
||||
radio.begin();
|
||||
}
|
||||
```
|
Ładowanie…
Reference in New Issue