diff --git a/variants/esp32/diy/hydra/platformio.ini b/variants/esp32/diy/hydra/platformio.ini index 3afd17e01..5dcdd9461 100644 --- a/variants/esp32/diy/hydra/platformio.ini +++ b/variants/esp32/diy/hydra/platformio.ini @@ -12,5 +12,6 @@ extends = esp32_base board = esp32doit-devkit-v1 build_flags = ${esp32_base.build_flags} + -D EBYTE_E22 -D DIY_V1 -I variants/esp32/diy/hydra diff --git a/variants/esp32/diy/hydra/variant.h b/variants/esp32/diy/hydra/variant.h index 68194f869..6bd296097 100644 --- a/variants/esp32/diy/hydra/variant.h +++ b/variants/esp32/diy/hydra/variant.h @@ -43,4 +43,12 @@ #define LORA_TXEN SX126X_TXEN // Compatibility with variant file configuration structure #define LORA_RXEN SX126X_RXEN // Compatibility with variant file configuration structure #define LORA_RESET SX126X_RESET // Compatibility with variant file configuration structure -#define LORA_DIO2 SX126X_BUSY // Compatibility with variant file configuration structure \ No newline at end of file +#define LORA_DIO2 SX126X_BUSY // Compatibility with variant file configuration structure + + +#ifdef EBYTE_E22 +// Internally the TTGO module hooks the SX126x-DIO2 in to control the TX/RX switch +// (which is the default for the sx1262interface code) +#define SX126X_DIO3_TCXO_VOLTAGE 1.8 +#define TCXO_OPTIONAL // make it so that the firmware can try both TCXO and XTAL +#endif \ No newline at end of file