kopia lustrzana https://github.com/sh123/esp32_loraprs
Update doc strings
rodzic
2c6ac8dcfe
commit
450c5cc299
4
config.h
4
config.h
|
@ -19,9 +19,9 @@
|
|||
// lora pinouts, CAD and ISR usage
|
||||
#define CFG_LORA_PIN_SS SS
|
||||
#define CFG_LORA_PIN_RST LORA_RST
|
||||
#define CFG_LORA_PIN_A LORA_IRQ // sx127x - dio0, sx126x - dio1
|
||||
#define CFG_LORA_PIN_A LORA_IRQ // (sx127x - dio0, sx126x/sx128x - dio1)
|
||||
#ifdef USE_RADIOLIB
|
||||
#define CFG_LORA_PIN_B RADIOLIB_NC // sx127x - dio1, sx126x - busy
|
||||
#define CFG_LORA_PIN_B RADIOLIB_NC // (sx127x - dio1, sx126x/sx128x - busy)
|
||||
#define CFG_LORA_USE_ISR true // always ON for RadioLib
|
||||
#else
|
||||
#define CFG_LORA_PIN_DIO1 LORA_IRQ // not used in arduino-LoRa
|
||||
|
|
|
@ -33,9 +33,8 @@ void initializeConfig(LoraPrs::Config &cfg) {
|
|||
// lora pinouts
|
||||
cfg.LoraPinSs = CFG_LORA_PIN_SS;
|
||||
cfg.LoraPinRst = CFG_LORA_PIN_RST;
|
||||
// For RadioLib DIO0 and DIO1 will depend on Module signature, check RadioLib documentation
|
||||
cfg.LoraPinA = CFG_LORA_PIN_A; // (sx127x - dio0, sx126x - dio1)
|
||||
cfg.LoraPinB = CFG_LORA_PIN_B; // (sx127x - dio1, sx126x - busy)
|
||||
cfg.LoraPinA = CFG_LORA_PIN_A; // (sx127x - dio0, sx126x/sx128x - dio1)
|
||||
cfg.LoraPinB = CFG_LORA_PIN_B; // (sx127x - dio1, sx126x/sx128x - busy)
|
||||
cfg.LoraUseIsr = CFG_LORA_USE_ISR; // set to true for incoming packet ISR usage (stream mode, e.g. speech)
|
||||
cfg.LoraUseCad = CFG_LORA_USE_CAD; // carrier detect
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ struct Config
|
|||
// lora hardware pinouts and isr
|
||||
byte LoraPinSs; // lora ss pin
|
||||
byte LoraPinRst; // lora rst pin
|
||||
byte LoraPinA; // lora dio0 pin (sx127x), dio1 (sx126x), check module docs
|
||||
byte LoraPinB; // lora dio1 pin (sx127x), busy (sx126x), check module docs
|
||||
byte LoraPinA; // (sx127x - dio0, sx126x/sx128x - dio1)
|
||||
byte LoraPinB; // (sx127x - dio1, sx126x/sx128x - busy)
|
||||
bool LoraUseIsr; // true to use interrupts, false for fallback polling, e.g. if Dio0 is not connected
|
||||
bool LoraUseCad; // use carrier detect before transmitting
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue