oh yeah, make idf compat
This commit is contained in:
parent
e75f752f3d
commit
f581b74251
2 changed files with 6 additions and 1 deletions
5
CMakeLists.txt
Normal file
5
CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
idf_component_register(SRCS
|
||||||
|
"main/esp32-lora.c"
|
||||||
|
|
||||||
|
INCLUDE_DIRS "include"
|
||||||
|
)
|
|
@ -37,7 +37,7 @@ lora32_cfg_t lora32_create() {
|
||||||
.implicitHeader = false,
|
.implicitHeader = false,
|
||||||
.nss = CONFIG_LORA32_NSS_PIN,
|
.nss = CONFIG_LORA32_NSS_PIN,
|
||||||
.reset = CONFIG_LORA32_RESET_PIN,
|
.reset = CONFIG_LORA32_RESET_PIN,
|
||||||
.frequency = 866000000,
|
.frequency = 915000000,
|
||||||
.preamble = DEFAULT_PREAMBLE,
|
.preamble = DEFAULT_PREAMBLE,
|
||||||
.spreadingFactor = DEFAULT_SF,
|
.spreadingFactor = DEFAULT_SF,
|
||||||
.spi = spi,
|
.spi = spi,
|
||||||
|
|
Loading…
Reference in a new issue