diff --git a/platformio.ini b/platformio.ini index 84245fc..1f6be55 100644 --- a/platformio.ini +++ b/platformio.ini @@ -72,17 +72,6 @@ display_libs = adafruit/Adafruit SSD1306 @ 2.5.10 -[env:ttgo-lora32-v21] -board = ttgo-lora32-v21 -build_flags = - ${common.build_flags} - -DTTGO_LORA32_V2_1 - -DHAS_SX1278 - -DHAS_ADC_CALIBRATION -lib_deps = - ${common.lib_deps} - ${common.display_libs} - [env:ttgo-lora32-v21_915] board = ttgo-lora32-v21 build_flags = diff --git a/src/battery_utils.cpp b/src/battery_utils.cpp index c292b78..6bc3b79 100644 --- a/src/battery_utils.cpp +++ b/src/battery_utils.cpp @@ -1,7 +1,7 @@ #include #include "battery_utils.h" #include "configuration.h" -#include "boards_pinout.h" +#include "board_pinout.h" #include "power_utils.h" #include "utils.h" diff --git a/src/boards_pinout.h b/src/boards_pinout.h index 3650738..bc5400a 100644 --- a/src/boards_pinout.h +++ b/src/boards_pinout.h @@ -2,6 +2,7 @@ #define PINS_CONFIG_H_ #include +//#include "board_pinout.h" #undef OLED_SDA #undef OLED_SCL @@ -9,7 +10,7 @@ // LORA MODULES -#if defined(TTGO_LORA32_V2_1) || defined(HELTEC_V2) || defined(ESP32_DIY_LoRa) || defined(TTGO_T_BEAM_V1_2) || defined(TTGO_T_BEAM_V1_0) || defined(TTGO_LORA32_V2_1_915) || defined(ESP32_DIY_LoRa_915) || defined(TTGO_T_BEAM_V1_2_915) || defined(TTGO_T_BEAM_V1_0_915) +#if defined(HELTEC_V2) || defined(ESP32_DIY_LoRa) || defined(TTGO_T_BEAM_V1_2) || defined(TTGO_T_BEAM_V1_0) || defined(TTGO_LORA32_V2_1_915) || defined(ESP32_DIY_LoRa_915) || defined(TTGO_T_BEAM_V1_2_915) || defined(TTGO_T_BEAM_V1_0_915) #define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK #define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO #define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI @@ -156,7 +157,7 @@ // OLED -#if defined(TTGO_LORA32_V2_1) || defined(ESP32_DIY_LoRa) || defined(ESP32_DIY_1W_LoRa) || defined(TTGO_T_BEAM_V1_0) || defined(TTGO_T_BEAM_V1_2) || defined(TTGO_T_BEAM_V1_0_SX1268) || defined(TTGO_T_BEAM_V1_2_SX1262) || defined(OE5HWN_MeshCom) || defined(ESP32_DIY_LoRa_A7670) || defined(TTGO_LORA32_V2_1_915) || defined(ESP32_DIY_LoRa_915) || defined(TTGO_T_BEAM_V1_0_915) || defined(TTGO_T_BEAM_V1_2_915) || defined(ESP32_DIY_LoRa_A7670_915) || defined(ESP32_DIY_1W_LoRa_915) || defined(ESP32_DIY_1W_LoRa_LLCC68) || defined(ESP32_DIY_1W_LoRa_Mesh_V1_2) +#if defined(ESP32_DIY_LoRa) || defined(ESP32_DIY_1W_LoRa) || defined(TTGO_T_BEAM_V1_0) || defined(TTGO_T_BEAM_V1_2) || defined(TTGO_T_BEAM_V1_0_SX1268) || defined(TTGO_T_BEAM_V1_2_SX1262) || defined(OE5HWN_MeshCom) || defined(ESP32_DIY_LoRa_A7670) || defined(TTGO_LORA32_V2_1_915) || defined(ESP32_DIY_LoRa_915) || defined(TTGO_T_BEAM_V1_0_915) || defined(TTGO_T_BEAM_V1_2_915) || defined(ESP32_DIY_LoRa_A7670_915) || defined(ESP32_DIY_1W_LoRa_915) || defined(ESP32_DIY_1W_LoRa_LLCC68) || defined(ESP32_DIY_1W_LoRa_Mesh_V1_2) #define OLED_SDA 21 #define OLED_SCL 22 #define OLED_RST -1 // Reset pin # (or -1 if sharing Arduino reset pin) @@ -199,7 +200,7 @@ #ifdef WEMOS_S2_MINI_DIY_LoRa #define INTERNAL_LED_PIN 15 #endif -#if defined(TTGO_LORA32_V2_1) || defined(TTGO_LORA32_V2_1_915) +#if defined(TTGO_LORA32_V2_1_915) #define INTERNAL_LED_PIN 25 // Green Led #define BATTERY_PIN 35 #endif diff --git a/src/display.cpp b/src/display.cpp index 27588a3..d1e2ead 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -1,6 +1,6 @@ #include #include "configuration.h" -#include "boards_pinout.h" +#include "board_pinout.h" #include "display.h" diff --git a/src/lora_utils.cpp b/src/lora_utils.cpp index 4417c44..21eee63 100644 --- a/src/lora_utils.cpp +++ b/src/lora_utils.cpp @@ -2,7 +2,7 @@ #include #include "configuration.h" #include "aprs_is_utils.h" -#include "boards_pinout.h" +#include "board_pinout.h" #include "syslog_utils.h" #include "ntp_utils.h" #include "display.h" diff --git a/variants/ESP32_C3_OctopusLab_LoRa/board_pinout.h b/variants/ESP32_C3_OctopusLab_LoRa/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ESP32_C3_OctopusLab_LoRa/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ESP32_DIY_1W_LoRa/board_pinout.h b/variants/ESP32_DIY_1W_LoRa/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ESP32_DIY_1W_LoRa/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ESP32_DIY_1W_LoRa_915/board_pinout.h b/variants/ESP32_DIY_1W_LoRa_915/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ESP32_DIY_1W_LoRa_915/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ESP32_DIY_1W_LoRa_LLCC68/board_pinout.h b/variants/ESP32_DIY_1W_LoRa_LLCC68/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ESP32_DIY_1W_LoRa_LLCC68/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ESP32_DIY_1W_LoRa_Mesh_V1_2/board_pinout.h b/variants/ESP32_DIY_1W_LoRa_Mesh_V1_2/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ESP32_DIY_1W_LoRa_Mesh_V1_2/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ESP32_DIY_LoRa/board_pinout.h b/variants/ESP32_DIY_LoRa/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ESP32_DIY_LoRa/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ESP32_DIY_LoRa_915/board_pinout.h b/variants/ESP32_DIY_LoRa_915/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ESP32_DIY_LoRa_915/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ESP32_DIY_LoRa_A7670/board_pinout.h b/variants/ESP32_DIY_LoRa_A7670/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ESP32_DIY_LoRa_A7670/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ESP32_DIY_LoRa_A7670_915/board_pinout.h b/variants/ESP32_DIY_LoRa_A7670_915/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ESP32_DIY_LoRa_A7670_915/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/OE5HWN_MeshCom/board_pinout.h b/variants/OE5HWN_MeshCom/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/OE5HWN_MeshCom/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/QRPLabs_LightGateway_1_0/board_pinout.h b/variants/QRPLabs_LightGateway_1_0/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/QRPLabs_LightGateway_1_0/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/WEMOS-D1-R32-RA02/board_pinout.h b/variants/WEMOS-D1-R32-RA02/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/WEMOS-D1-R32-RA02/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/WEMOS-LOLIN32-OLED-DIY/board_pinout.h b/variants/WEMOS-LOLIN32-OLED-DIY/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/WEMOS-LOLIN32-OLED-DIY/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/WEMOS_S2_MINI_DIY_LoRa/board_pinout.h b/variants/WEMOS_S2_MINI_DIY_LoRa/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/WEMOS_S2_MINI_DIY_LoRa/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/esp32c3_DIY_1W_LoRa/board_pinout.h b/variants/esp32c3_DIY_1W_LoRa/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/esp32c3_DIY_1W_LoRa/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/esp32c3_DIY_1W_LoRa_915/board_pinout.h b/variants/esp32c3_DIY_1W_LoRa_915/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/esp32c3_DIY_1W_LoRa_915/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/heltec-lora32-v2/board_pinout.h b/variants/heltec-lora32-v2/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/heltec-lora32-v2/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/heltec_ht-ct62/board_pinout.h b/variants/heltec_ht-ct62/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/heltec_ht-ct62/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/heltec_wifi_lora_32_V3/board_pinout.h b/variants/heltec_wifi_lora_32_V3/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/heltec_wifi_lora_32_V3/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/heltec_wireless_paper/board_pinout.h b/variants/heltec_wireless_paper/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/heltec_wireless_paper/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/heltec_wireless_stick/board_pinout.h b/variants/heltec_wireless_stick/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/heltec_wireless_stick/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/heltec_wireless_stick_lite_v3/board_pinout.h b/variants/heltec_wireless_stick_lite_v3/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/heltec_wireless_stick_lite_v3/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/heltec_wireless_stick_lite_v3_display/board_pinout.h b/variants/heltec_wireless_stick_lite_v3_display/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/heltec_wireless_stick_lite_v3_display/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/heltec_wireless_tracker/board_pinout.h b/variants/heltec_wireless_tracker/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/heltec_wireless_tracker/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ttgo-lora32-v21/board_pinout.h b/variants/ttgo-lora32-v21/board_pinout.h new file mode 100644 index 0000000..444d00e --- /dev/null +++ b/variants/ttgo-lora32-v21/board_pinout.h @@ -0,0 +1,28 @@ +#ifndef BOARD_PINOUT_H_ +#define BOARD_PINOUT_H_ + + + #define HAS_SX1278 + #define HAS_DISPLAY + #define HAS_ADC_CALIBRATION + + #undef OLED_SDA + #undef OLED_SCL + #undef OLED_RST + + #define OLED_SDA 21 + #define OLED_SCL 22 + #define OLED_RST -1 // Reset pin # (or -1 if sharing Arduino reset pin) + + #define INTERNAL_LED_PIN 25 // Green Led + #define BATTERY_PIN 35 + + #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 + + +#endif \ No newline at end of file diff --git a/variants/ttgo-lora32-v21/platformio.ini b/variants/ttgo-lora32-v21/platformio.ini new file mode 100644 index 0000000..11e311a --- /dev/null +++ b/variants/ttgo-lora32-v21/platformio.ini @@ -0,0 +1,9 @@ +[env:ttgo-lora32-v21] +board = ttgo-lora32-v21 +build_flags = + ${common.build_flags} + -DTTGO_LORA32_V2_1 + -I variants/ttgo-lora32-v21 +lib_deps = + ${common.lib_deps} + ${common.display_libs} \ No newline at end of file diff --git a/variants/ttgo-lora32-v21_915/board_pinout.h b/variants/ttgo-lora32-v21_915/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ttgo-lora32-v21_915/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ttgo-t-beam-v1/board_pinout.h b/variants/ttgo-t-beam-v1/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ttgo-t-beam-v1/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ttgo-t-beam-v1_2/board_pinout.h b/variants/ttgo-t-beam-v1_2/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ttgo-t-beam-v1_2/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ttgo-t-beam-v1_2_915/board_pinout.h b/variants/ttgo-t-beam-v1_2_915/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ttgo-t-beam-v1_2_915/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ttgo-t-beam-v1_2_SX1262/board_pinout.h b/variants/ttgo-t-beam-v1_2_SX1262/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ttgo-t-beam-v1_2_SX1262/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ttgo-t-beam-v1_915/board_pinout.h b/variants/ttgo-t-beam-v1_915/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ttgo-t-beam-v1_915/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ttgo-t-beam-v1_SX1268/board_pinout.h b/variants/ttgo-t-beam-v1_SX1268/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ttgo-t-beam-v1_SX1268/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file diff --git a/variants/ttgo_lora32_t3s3_v1_2/board_pinout.h b/variants/ttgo_lora32_t3s3_v1_2/board_pinout.h new file mode 100644 index 0000000..5483870 --- /dev/null +++ b/variants/ttgo_lora32_t3s3_v1_2/board_pinout.h @@ -0,0 +1,6 @@ +#define RADIO_SCLK_PIN 5 // GPIO5 - SX1278 SCK +#define RADIO_MISO_PIN 19 // GPIO19 - SX1278 MISO +#define RADIO_MOSI_PIN 27 // GPIO27 - SX1278 MOSI +#define RADIO_CS_PIN 18 // GPIO18 - SX1278 CS ---> NSS +#define RADIO_RST_PIN 14 // GPIO14 - SX1278 RST +#define RADIO_BUSY_PIN 26 // GPIO26 - SX1278 IRQ ---->DIO0 \ No newline at end of file