mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-13 02:14:30 +00:00
ready radiolib excludes
This commit is contained in:
parent
5882b54c62
commit
3416e21a8c
42 changed files with 138 additions and 0 deletions
|
|
@ -93,6 +93,16 @@ namespace LoRa_Utils {
|
|||
#if defined(HAS_SX1278) || defined(HAS_SX1276)
|
||||
radio.setDio0Action(setFlag, RISING);
|
||||
#endif
|
||||
|
||||
/*#ifdef SX126X_DIO3_TCXO_VOLTAGE
|
||||
if (radio.setTCXO(float(SX126X_DIO3_TCXO_VOLTAGE)) == RADIOLIB_ERR_NONE) {
|
||||
Utils::println("Set LoRa Module TCXO Voltage to:" + String(SX126X_DIO3_TCXO_VOLTAGE));
|
||||
} else {
|
||||
Utils::println("Set LoRa Module TCXO Voltage failed! State: " + String(state));
|
||||
while (true);
|
||||
}
|
||||
#endif*/
|
||||
|
||||
radio.setSpreadingFactor(Config.loramodule.rxSpreadingFactor);
|
||||
radio.setCodingRate(Config.loramodule.rxCodingRate4);
|
||||
float signalBandwidth = Config.loramodule.rxSignalBandwidth/1000;
|
||||
|
|
@ -103,6 +113,11 @@ namespace LoRa_Utils {
|
|||
radio.setRfSwitchPins(RADIO_RXEN, RADIO_TXEN);
|
||||
#endif
|
||||
|
||||
/*#ifdef SX126X_DIO2_AS_RF_SWITCH
|
||||
radio.setRfSwitchPins(RADIO_RXEN, RADIOLIB_NC);
|
||||
radio.setDio2AsRfSwitch(true);
|
||||
#endif*/
|
||||
|
||||
#ifdef HAS_1W_LORA // Ebyte E22 400M30S (SX1268) / 900M30S (SX1262) / Ebyte E220 400M30S (LLCC68)
|
||||
state = radio.setOutputPower(Config.loramodule.power); // max value 20dB for 1W modules as they have Low Noise Amp
|
||||
radio.setCurrentLimit(140); // to be validated (100 , 120, 140)?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue