Updated Basics (markdown)

master
Jan Gromeš 2024-07-24 18:28:24 +02:00
rodzic 7008ae399f
commit dce54707d6
1 zmienionych plików z 14 dodań i 1 usunięć

@ -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();
}
```