From efabe9b1f73e2535cfca523ec663cb4679d79c96 Mon Sep 17 00:00:00 2001 From: "Ricardo Guzman (Richonguzman)" Date: Mon, 16 Feb 2026 21:37:54 -0300 Subject: [PATCH] start Heltec V2 915 --- variants/heltec-lora32-v2_915/board_pinout.h | 53 ++++++++++++++++++++ variants/heltec-lora32-v2_915/platformio.ini | 11 ++++ 2 files changed, 64 insertions(+) create mode 100644 variants/heltec-lora32-v2_915/board_pinout.h create mode 100644 variants/heltec-lora32-v2_915/platformio.ini diff --git a/variants/heltec-lora32-v2_915/board_pinout.h b/variants/heltec-lora32-v2_915/board_pinout.h new file mode 100644 index 0000000..667f61d --- /dev/null +++ b/variants/heltec-lora32-v2_915/board_pinout.h @@ -0,0 +1,53 @@ +/* Copyright (C) 2025 Ricardo Guzman - CA2RXU + * + * This file is part of LoRa APRS iGate. + * + * LoRa APRS iGate is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * LoRa APRS iGate is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with LoRa APRS iGate. If not, see . + */ + +#ifndef BOARD_PINOUT_H_ +#define BOARD_PINOUT_H_ + + // LoRa Radio + #define HAS_SX1276 + #define RADIO_SCLK_PIN 5 + #define RADIO_MISO_PIN 19 + #define RADIO_MOSI_PIN 27 + #define RADIO_CS_PIN 18 + #define RADIO_RST_PIN 14 + #define RADIO_BUSY_PIN 26 + #define RADIO_WAKEUP_PIN RADIO_BUSY_PIN + #define GPIO_WAKEUP_PIN GPIO_SEL_26 + + // I2C + #define USE_WIRE_WITH_OLED_PINS + + // Display + #define HAS_DISPLAY + + #undef OLED_SDA + #undef OLED_SCL + #undef OLED_RST + + #define OLED_SDA 4 + #define OLED_SCL 15 + #define OLED_RST 16 + #define OLED_DISPLAY_HAS_RST_PIN + + // Aditional Config + #define INTERNAL_LED_PIN 25 + #define BATTERY_PIN 37 + #define ADC_CTRL 21 + +#endif \ No newline at end of file diff --git a/variants/heltec-lora32-v2_915/platformio.ini b/variants/heltec-lora32-v2_915/platformio.ini new file mode 100644 index 0000000..77065ad --- /dev/null +++ b/variants/heltec-lora32-v2_915/platformio.ini @@ -0,0 +1,11 @@ +[env:heltec-lora32-v2_915] +board = ttgo-lora32-v21 +build_flags = + ${common.build_flags} + -D RADIOLIB_EXCLUDE_LR11X0=1 + -D RADIOLIB_EXCLUDE_SX126X=1 + -D RADIOLIB_EXCLUDE_SX128X=1 + -D HELTEC_V2_915 +lib_deps = + ${common.lib_deps} + ${common.display_libs} \ No newline at end of file