Skip to content

Commit 7d606d8

Browse files
authored
adding gps pins for sx1262 (ClusterDuck-Protocol#443)
Signed-off-by: Brenton Poke <brentonpoke@outlook.com>
1 parent 136603a commit 7d606d8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

platformio.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
; default_envs = heltec_wifi_lora_32_V3
2626
; default_envs = heltec_wifi_lora_32_V2
27-
default_envs = lilygo_t_beam_sx1262
27+
default_envs = lilygo_t_beam_sx1262
2828
; default_envs = cubecell_gps
2929
; default_envs = cubecell_board_v2
3030
; default_envs = ttgo_lora32_v1
@@ -130,6 +130,9 @@
130130
${env:esp32_base.lib_deps}
131131
mikalhart/TinyGPSPlus @ ~1.0.2
132132
lewisxhe/XPowersLib@^0.1.5
133+
build_flags =
134+
${env.build_flags}
135+
133136
[env:cubecell_gps]
134137
; extends cubecell_base environment which extends cdp_common environment
135138
extends = cubecell_base

src/include/boards/lilygo_t_beam_sx1262.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
#define CDPCFG_BAT_MULDIV 200 / 100
1616
#define CDPCFG_PIN_LED1 25
1717

18+
//GPS configuration
19+
#define CDPCFG_GPS_RX 34
20+
#define CDPCFG_GPS_TX 12
21+
1822
// LoRa configuration
1923
#define CDPCFG_PIN_LORA_CS 18
2024
#define CDPCFG_PIN_LORA_RST 23

0 commit comments

Comments
 (0)