mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-09 15:03:56 +01:00
first
This commit is contained in:
parent
179c93f96a
commit
6ed3023b49
|
|
@ -34,4 +34,9 @@ build_flags = -Werror -Wall -DTTGO_T_LORA_V2_1
|
|||
|
||||
[env:heltec-lora32-v2]
|
||||
board = ttgo-lora32-v21
|
||||
build_flags = -Werror -Wall -DHELTEC_V2
|
||||
build_flags = -Werror -Wall -DHELTEC_V2
|
||||
|
||||
[env:heltec_wifi_kit_32_V3]
|
||||
board = heltec_wifi_kit_32_V3
|
||||
build_flags = -Werror -Wall -DHELTEC_V3
|
||||
board_build.mcu = esp32s3
|
||||
|
|
@ -7,12 +7,23 @@
|
|||
#undef OLED_SCL
|
||||
#undef OLED_RST
|
||||
|
||||
#if defined(TTGO_T_LORA_V2_1) || defined(HELTEC_V2)
|
||||
#define LORA_SCK 5 // GPIO5 - SX1276 SCK
|
||||
#define LORA_MISO 19 // GPIO19 - SX1276 MISO
|
||||
#define LORA_MOSI 27 // GPIO27 - SX1276 MOSI
|
||||
#define LORA_CS 18 // GPIO18 - SX1276 CS ---> NSS
|
||||
#define LORA_RST 23 // GPIO14 - SX1276 RST
|
||||
#define LORA_RST 14 // GPIO14 - SX1276 RST
|
||||
#define LORA_IRQ 26 // GPIO26 - SX1276 IRQ ---->DIO0
|
||||
#endif
|
||||
#ifdef HELTEC_V3
|
||||
#define LORA_SCK 9 // SX1268 SCK
|
||||
#define LORA_MISO 11 // SX1268 MISO
|
||||
#define LORA_MOSI 10 // SX1268 MOSI
|
||||
#define LORA_CS 8 // SX1268 CS ---> NSS
|
||||
#define LORA_RST 12 // SX1268 RST
|
||||
#define LORA_IRQ 14 // SX1268 IRQ ---->DIO0
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef TTGO_T_LORA_V2_1
|
||||
#define OLED_SDA 21
|
||||
|
|
@ -26,6 +37,12 @@
|
|||
#define OLED_RESET 16
|
||||
#endif
|
||||
|
||||
#ifdef HELTEC_V3
|
||||
#define OLED_SDA 17
|
||||
#define OLED_SCL 18
|
||||
#define OLED_RESET 21
|
||||
#endif
|
||||
|
||||
#define greenLed 25 // Green Led
|
||||
|
||||
#define batteryPin 35
|
||||
|
|
|
|||
Loading…
Reference in a new issue