After thoroughly reading schematics and documentation, i conclude that this is theoretically the right definition for this hookup.

This commit is contained in:
Thomas Göttgens
2023-01-22 00:45:38 +01:00
parent 1941d196bb
commit e9acf413fb
2 changed files with 29 additions and 2 deletions

View File

@@ -68,6 +68,11 @@ template <typename T> bool SX126xInterface<T>::init()
#if defined(SX126X_TXEN) && (SX126X_TXEN != RADIOLIB_NC)
// lora.begin sets Dio2 as RF switch control, which is not true if we are manually controlling RX and TX
if (res == RADIOLIB_ERR_NONE)
res = lora.setDio2AsRfSwitch(false);
#endif
#ifdef SX126X_E22
// E22 Emulation explicitly requires DIO2 as RF switch, so set it to TRUE again for good measure. In case somebody defines SX126X_TX for an E22 Module
if (res == RADIOLIB_ERR_NONE)
res = lora.setDio2AsRfSwitch(true);
#endif