forked from seiichiro0185/tbeam-ttnmapper
-
Notifications
You must be signed in to change notification settings - Fork 2
/
platformio.ini
147 lines (133 loc) · 3.02 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
;PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = ttgo-t-beam07
[common_env_data]
lib_deps =
mcci-catena/MCCI LoRaWAN LMIC library @ 3.3.0
mikalhart/TinyGPSPlus @ 1.0.2
olikraus/U8g2 @ 2.28.8
; Board Revision 0.7 (2 Buttons)
[env:ttgo-t-beam07]
platform = espressif32
board = ttgo-t-beam
framework = arduino
monitor_speed = 115200
lib_deps =
${common_env_data.lib_deps}
5608 ;SimpleButton
build_flags =
-D V0_7
-D GPS_TX=12
-D GPS_RX=15
-D BUTTON_L=13
-D BUTTON_R=39
-D BUTTON_B=39
-D BAT_PIN=35
-D OLED_SCL=22
-D OLED_SDA=21
-D LORA_RST=23
-D LORA_CS=18
-D LORA_MISO=19
-D LORA_MOSI=27
-D LORA_DIO0=26
-D LORA_DIO1=33
-D LORA_DIO2=32
-D CFG_sx1276_radio=1
-D DISABLE_BEACONS
-D DISABLE_PING
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
; Board Revision 1.0 (2 Buttons)
[env:ttgo-t-beam10]
platform = espressif32
board = ttgo-t-beam
framework = arduino
monitor_speed = 115200
lib_deps =
${common_env_data.lib_deps}
build_flags =
-D V1_0
-D GPS_TX=12
-D GPS_RX=15
-D BUTTON_R=39
-D BUTTON_B=39
; -D BUZZER_PIN=0
-D BAT_PIN=35
-D OLED_SCL=22
-D OLED_SDA=21
-D LORA_RST=23
-D LORA_CS=18
-D LORA_MISO=19
-D LORA_MOSI=27
-D LORA_DIO0=26
-D LORA_DIO1=33
-D LORA_DIO2=32
-D CFG_sx1276_radio=1
-D DISABLE_BEACONS
-D DISABLE_PING
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
; Board Revision 1.1 (3 Buttons)
[env:ttgo-t-beam11]
platform = espressif32
board = ttgo-t-beam
framework = arduino
monitor_speed = 115200
lib_deps =
${common_env_data.lib_deps}
https://github.com/lewisxhe/AXP202X_Library
build_flags =
-D V1_1
-D GPS_TX=34
-D GPS_RX=12
-D BUTTON_R=38
-D BUTTON_B=38
-D BUZZER_PIN=0
-D OLED_SCL=22
-D OLED_SDA=21
-D LORA_RST=23
-D LORA_CS=18
-D LORA_MISO=19
-D LORA_MOSI=27
-D LORA_DIO0=26
-D LORA_DIO1=33
-D LORA_DIO2=32
-D CFG_sx1276_radio=1
-D DISABLE_BEACONS
-D DISABLE_PING
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
; Heltec Wireless Stick external GPS soldered RX Pin 23, TX Pin 17
[env:heltec-wireless-stick]
platform = espressif32@1.9.0
board = heltec_wireless_stick
framework = arduino
monitor_speed = 115200
lib_deps =
${common_env_data.lib_deps}
build_flags =
-D HELTEC_WS
-D GPS_TX=23
-D GPS_RX=17
-D BUTTON_R=0
-D BUTTON_B=0
; -D BUZZER_PIN=0
-D OLED_SCL=15
-D OLED_SDA=4
-D OLED_RST=16
-D LORA_RST=14
-D LORA_CS=18
-D LORA_MISO=19
-D LORA_MOSI=27
-D LORA_DIO0=26
-D LORA_DIO1=34
-D LORA_DIO2=35
-D CFG_sx1276_radio=1
-D DISABLE_BEACONS
-D DISABLE_PING
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS