-
Notifications
You must be signed in to change notification settings - Fork 4
/
platformio.ini
162 lines (146 loc) · 5.41 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
;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-sx1276-tbeam-v10
[common]
build_flags = -DWITH_ESP32
; -DWITH_TBEAM ; not sure about this flag?
-DWITH_SPIFFS ; use SPIFFS in flash
-DWITH_SPIFFS_FAT ; replace SPIFFS file system with FAT which seems not giving trouble when flash starts getting full
-DWITH_LOG ; log flights to flash
; -DWITH_FollowMe
; -DWITH_OLED
; -DWITH_U8G2_OLED
-DWITH_OGN
-DWITH_ADSL
-DWITH_PAW
-DWITH_FANET
-DWITH_LORAWAN ; LoRaWAN support (works with TTN)
-DWITH_CONFIG ; allow to change parameters via serial console
-DWITH_GPS_PPS ; use the PPS of the GPS (not critical but gets betterr timing)
-DWITH_GPS_CONFIG ; GPS can be adjusted for serial baud rate and navigation model
; -DWITH_GPS_NMEA_PASS
; -DWITH_BME280 ; recognizes automatically BMP280 or BME280
-DWITH_LOOKOUT
-DWITH_PFLAA
; -DWITH_BT_SPP ; BT4 serial port for XCsoar - but cannot work with AP
; -DWITH_AP ; WiFi Access Point
; -DWITH_AP_BUTTON ; compile error?
; -DWITH_HTTP
-DRADIOLIB_GODMODE ; advanced functions are needed from the RadioLib
[env]
; platform = https://github.com/platformio/platform-espressif32.git
platform = espressif32
framework = arduino
; upload_port = /dev/ttyUSB0
; monitor_port = /dev/ttyUSB0
upload_port = /dev/ttyACM0
monitor_port = /dev/ttyACM0
upload_speed = 460800
monitor_speed = 115200
platform_packages =
framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.6 ; 2.0.3, 2.0.4, 2.0.5 or 2.0.6 - which is best ?
lib_deps =
SPI
https://github.com/pjalocha/RadioLib.git
; https://github.com/jgromes/RadioLib#6.5.0
Wire
; https://github.com/lewisxhe/XPowersLib@^0.1.8
https://github.com/lewisxhe/XPowersLib
lewisxhe/AXP202X_Library@^1.1.3
u8g2
board_build.mcu = esp32 ;
board_build.f_cpu = 80000000L ; 80MHz
board_build.flash_size = 4MB
board_upload.flash_size = 4MB
board_build.partitions = partitions.csv
board_build.embed_files =
src/OGN_logo_240x240.jpg
[env:ttgo-sx1276-tbeam-07] ; T-Beam v0.7
board = ttgo-lora32-v1
build_flags = ${common.build_flags}
-DWITH_TBEAM07
-DWITH_SX1276
-DWITH_AXP ; AXP192 power chip
-DWITH_GPS_UBX
; -DWITH_GPS_UBX_PASS
[env:ttgo-sx1276-tbeam-v10] ; T-Beam v1.1
board = ttgo-lora32-v1
build_flags = ${common.build_flags}
-DWITH_TBEAM10
-DWITH_SX1276
-DWITH_AXP ; AXP192 power chip
-DWITH_GPS_UBX
; -DWITH_GPS_UBX_PASS
[env:ttgo-sx1262-tbeam-v10] ; T-Beam v1.1
board = ttgo-lora32-v1
build_flags = ${common.build_flags}
-DWITH_TBEAM10
-DWITH_SX1262
-DWITH_AXP ; AXP192 power chip
-DWITH_GPS_UBX
; -DWITH_GPS_UBX_PASS
[env:ttgo-sx1276-tbeam-v20] ; T-Beam v1.2
board = ttgo-lora32-v1
build_flags = ${common.build_flags}
-DWITH_TBEAM20
-DWITH_SX1276
-DWITH_XPOWERS ; AXP2101 power chip
-DWITH_GPS_UBX
; -DWITH_GPS_UBX_PASS
[env:ttgo-sx1262-tbeam-s3-mtk]
board = esp32-s3-devkitc-1
board_build.mcu = esp32s3
build_flags = ${common.build_flags}
-DWITH_TBEAMS3
-DWITH_SX1262
-DWITH_GPS_MTK
-DDWITH_GPS_ENABLE
-DWITH_XPOWERS ; AXP2101 power chip
-DARDUINO_USB_MODE=1 ; direct-USB mode: not an UART bridge
-DARDUINO_USB_CDC_ON_BOOT=1
; -DWITH_SD
; -DWITH_SDLOG
[env:ttgo-sx1262-tbeam-s3-ubx]
board = esp32-s3-devkitc-1
board_build.mcu = esp32s3
build_flags = ${common.build_flags}
-DWITH_TBEAMS3
-DWITH_SX1262
-DWITH_GPS_UBX
-DWITH_XPOWERS ; AXP2101 power chip
-DARDUINO_USB_MODE=1 ; direct-USB mode: not an UART bridge
-DARDUINO_USB_CDC_ON_BOOT=1
; -DWITH_SD
; -DWITH_SDLOG
[env:HTIT-Tracker]
board = esp32-s3-devkitc-1
board_build.mcu = esp32s3
board_build.f_cpu = 20000000L ; 20MHz
build_flags = ${common.build_flags}
-DWITH_HTIT_TRACKER
-DWITH_ST7735
-DWITH_SX1262
-DWITH_GPS_CFG
-DWITH_GPS_PPS ; use the PPS of the GPS (not critical but gets betterr timing)
-DWITH_BLE_SPP
; -DWITH_AP
; -DWITH_HTTP
-DWITH_SLEEP ; turn off by putting in deep sleep
-DARDUINO_USB_MODE=1 ; direct-USB mode: not an UART bridge
-DARDUINO_USB_CDC_ON_BOOT=1
lib_deps =
SPI
adafruit/Adafruit ST7735 and ST7789 Library
adafruit/Adafruit GFX Library
ArduinoBLE
https://github.com/LennartHennigs/Button2
https://github.com/pjalocha/RadioLib.git