1
0
mirror of https://github.com/sandeepmistry/arduino-LoRa.git synced 2025-04-25 09:22:31 +03:00

Lower default SPI frequency to 8 MHz (from 10 MHz)

This commit is contained in:
Sandeep Mistry 2017-04-23 20:38:04 -04:00
parent df0f6994b2
commit 73e42aca9c
2 changed files with 3 additions and 3 deletions

4
API.md
View File

@ -39,9 +39,9 @@ Override the default SPI frequency of 10 MHz used by the library. **Must** be ca
```arduino
LoRa.setSPIFrequency(frequency);
```
* `frequency` - new SPI frequency to use, defaults to `10E6`
* `frequency` - new SPI frequency to use, defaults to `8E6`
This call is optional and only needs to be used if you need to change the default SPI frequency used. Some logic level converters cannot support high speeds such as 10 MHz, so a lower SPI frequency can be selected with `LoRa.setSPIFrequency(frequency)`.
This call is optional and only needs to be used if you need to change the default SPI frequency used. Some logic level converters cannot support high speeds such as 8 MHz, so a lower SPI frequency can be selected with `LoRa.setSPIFrequency(frequency)`.
### End

View File

@ -48,7 +48,7 @@
#define MAX_PKT_LENGTH 255
LoRaClass::LoRaClass() :
_spiSettings(10E6, MSBFIRST, SPI_MODE0),
_spiSettings(8E6, MSBFIRST, SPI_MODE0),
_ss(LORA_DEFAULT_SS_PIN), _reset(LORA_DEFAULT_RESET_PIN), _dio0(LORA_DEFAULT_DIO0_PIN),
_frequency(0),
_packetIndex(0),