From cc6fbe8acabe8ad93414e44669116491c27bfac2 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 20 Aug 2026 08:52:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=BC=D0=BD=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20Hydra,=20=D1=87?= =?UTF-8?q?=D1=82=D0=BE=D0=B1=D1=8B=20=D0=BD=D0=BE=D1=80=D0=BC=D0=B0=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D0=BE=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D0=B8=20400m33s=20?= =?UTF-8?q?=D0=B8=20900m33s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- variants/esp32/diy/hydra/platformio.ini | 1 + variants/esp32/diy/hydra/variant.h | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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