From 029be298e1f7a6205fe2d751b78b858060fc5f51 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Sun, 5 Jan 2025 12:10:26 -0300 Subject: [PATCH] start --- variants/TROY_LoRa_APRS/board_pinout.h | 32 ++++++++++++++++++++++++++ variants/TROY_LoRa_APRS/platformio.ini | 10 ++++++++ 2 files changed, 42 insertions(+) create mode 100644 variants/TROY_LoRa_APRS/board_pinout.h create mode 100644 variants/TROY_LoRa_APRS/platformio.ini diff --git a/variants/TROY_LoRa_APRS/board_pinout.h b/variants/TROY_LoRa_APRS/board_pinout.h new file mode 100644 index 0000000..5767b18 --- /dev/null +++ b/variants/TROY_LoRa_APRS/board_pinout.h @@ -0,0 +1,32 @@ +#ifndef BOARD_PINOUT_H_ +#define BOARD_PINOUT_H_ + + // LoRa Radio + #define HAS_SX1278 + #define RADIO_SCLK_PIN 5 + #define RADIO_MISO_PIN 19 + #define RADIO_MOSI_PIN 27 + #define RADIO_CS_PIN 18 + #define RADIO_RST_PIN 23 + #define RADIO_BUSY_PIN 26 + + // Display + #undef OLED_SDA + #undef OLED_SCL + #undef OLED_RST + + #define OLED_SDA 21 + #define OLED_SCL 22 + #define OLED_RST 16 + + // GPS + #define GPS_RX 12 + #define GPS_TX 34 + + // OTHER + #define BUTTON_PIN 15 + #define BATTERY_PIN 35 //LoRa32 Battery PIN 100k/100k + + #define HAS_BT_CLASSIC + +#endif \ No newline at end of file diff --git a/variants/TROY_LoRa_APRS/platformio.ini b/variants/TROY_LoRa_APRS/platformio.ini new file mode 100644 index 0000000..6f928f0 --- /dev/null +++ b/variants/TROY_LoRa_APRS/platformio.ini @@ -0,0 +1,10 @@ +[env:TROY_LoRa_APRS] +extends = env:esp32 +board = esp32dev +build_flags = + ${common.build_flags} + -D TROY_LoRa_APRS +lib_deps = + ${common.lib_deps} + ${common.display_libs} + adafruit/Adafruit SH110X @ 2.1.10 \ No newline at end of file