forked from lefty01/ESP32_TTGO_FTMS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
212 lines (192 loc) · 4.92 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
; 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 = ESP32_WT32-SC01
[common_env_data]
lib_deps_ext =
ayushsharma82/AsyncElegantOTA @ ^2.2.6
h2zero/NimBLE-Arduino @ ^1.3.1
;h2zero/esp-nimble-cpp TODO: what is difference between NimBLE-Arduino and esp-nimble-cpp!?
ottowinter/ESPAsyncWebServer-esphome @ ^2.0.1
knolleary/PubSubClient @ ^2.8
bblanchon/ArduinoJson @ ^6.18.5
lennarthennigs/Button2 @ ^1.6.5
paulstoffregen/Time @ ^1.6.1
rfetick/MPU6050_light @ ^1.1.0
https://github.com/alanswx/ESPAsyncWiFiManager.git
build_flags_settings =
-Os
-DCORE_DEBUG_LEVEL=0
-I include/
;treadmill=Northtrack12_2_Si
;treadmill=SoleF85
treadmill=Taurus9_5
[env:ESP32_TTGO_DISPLAY]
platform = espressif32
board = esp32dev
board_build.filesystem = littlefs
extra_scripts = post:scripts/prepare_littlefs.py
framework = arduino
monitor_speed = 115200
upload_speed = 921600
board_build.partitions = no_ota.csv
lib_deps =
${common_env_data.lib_deps_ext}
lovyan03/LovyanGFX@>=0.4.10
lvgl/lvgl@^8.1.0
build_flags =
-DTARGET_TTGO_T_DISPLAY
-DLGFX_TTGO_TDISPLAY
-DLGFX_USE_V1
-DGUI_LVGL
;-DBUTTON_1=35
;-DBUTTON_2=0
${common_env_data.build_flags_settings}
[env:ESP32_TTGO_DISPLAY_SSL]
platform = espressif32
board = esp32dev
board_build.filesystem = littlefs
extra_scripts = post:scripts/prepare_littlefs.py
framework = arduino
monitor_speed = 115200
upload_speed = 921600
board_build.partitions = ssl_app.csv
lib_deps =
WiFiClientSecure
${common_env_data.lib_deps_ext}
lovyan03/LovyanGFX@>=0.4.10
lvgl/lvgl@^8.1.0
build_flags =
-DMQTT_USE_SSL
-DTARGET_TTGO_T_DISPLAY
-DLGFX_TTGO_TDISPLAY
-DLGFX_USE_V1
-DGUI_LVGL
;-DBUTTON_1=35
;-DBUTTON_2=0
${common_env_data.build_flags_settings}
[env:ESP32_WT32-SC01]
; 4MB SPI Flash, 8MB PSRAM
; Screen model: WT-352215-A2
platform = espressif32
board = esp-wrover-kit
board_build.filesystem = littlefs
extra_scripts = post:scripts/prepare_littlefs.py
board_build.partitions = no_ota.csv
framework = arduino
upload_protocol = esptool
monitor_speed = 115200
upload_speed = 921600
;upload_port = /dev/ttyUSB0
;monitor_port = /dev/ttyUSB0
; Set optimization level and amount of debug information generated by the compiler
debug_build_flags = -O0 -ggdb3 -g3
lib_deps =
${common_env_data.lib_deps_ext}
lovyan03/LovyanGFX@>=0.4.10
lvgl/lvgl@^8.1.0
build_flags =
-DTARGET_WT32_SC01
-DLGFX_WT32_SC01
-DLGFX_USE_V1
-DTFT_WIDTH=320
-DTFT_HEIGHT=480
-DHAS_TOUCH_DISPLAY=1
-DTFT_BL=23
-DGUI_LVGL
${common_env_data.build_flags_settings}
[env:ESP32_WT32-SC01_OLD_TFT_GUI]
; 4MB SPI Flash, 8MB PSRAM
; Screen model: WT-352215-A2
platform = espressif32
board = esp-wrover-kit
board_build.filesystem = littlefs
extra_scripts = post:scripts/prepare_littlefs.py
board_build.partitions = no_ota.csv
framework = arduino
upload_protocol = esptool
monitor_speed = 115200
upload_speed = 921600
;upload_port = /dev/ttyUSB0
;monitor_port = /dev/ttyUSB0
; Set optimization level and amount of debug information generated by the compiler
debug_build_flags = -O0 -ggdb3 -g3
lib_deps =
${common_env_data.lib_deps_ext}
lovyan03/LovyanGFX@>=0.4.10
build_flags =
-DTARGET_WT32_SC01
-DLGFX_WT32_SC01
-DLGFX_USE_V1
-DTFT_WIDTH=320
-DTFT_HEIGHT=480
-DDRAW_STATS_WIDTH=240
-DDRAW_STATS_HEIGHT=135
-DDRAW_CTRL_WIDTH=240
-DDRAW_CTRL_HEIGHT=135
-DHAS_TOUCH_DISPLAY=1
-DNUM_TOUCH_BUTTONS=6
-DTFT_BL=23
${common_env_data.build_flags_settings}
[env:ESP32_TTGO_T4]
; ILI9341
platform = espressif32
board = esp-wrover-kit
board_build.partitions = ssl_app.csv
board_build.filesystem = littlefs
extra_scripts = post:scripts/prepare_littlefs.py
framework = arduino
monitor_speed = 115200
upload_speed = 921600
lib_deps =
${common_env_data.lib_deps_ext}
ottowinter/ESPAsyncWebServer-esphome @ ^2.1.0
;lovyan03/LovyanGFX@>=0.4.10 -> change back once my pr gets merged!
https://github.com/lefty01/LovyanGFX
lvgl/lvgl@^8.1.0
build_flags =
-DTARGET_TTGO_T4
-DLGFX_TTGO_T4_DISPLAY
-DLGFX_USE_V1
-DGUI_LVGL
-DTFT_WIDTH=240
-DTFT_HEIGHT=320
-DDISPLAY_WIDTH=240
-DDISPLAY_HEIGHT=320
-DBUTTON1_PIN=38
-DBUTTON2_PIN=37
-DBUTTON3_PIN=39
-DPIN_SDA=21
-DPIN_SCL=22
-DTFT_MISO=12
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=27
-DTFT_DC=32
-DTFT_RST=5
-DTFT_BL=4
-DTFT_ROTATE=1
${common_env_data.build_flags_settings}
[env:ESP32_WROOMD_HEADLESS]
platform = espressif32
board = esp32dev
board_build.filesystem = littlefs
extra_scripts = post:scripts/prepare_littlefs.py
board_build.partitions = no_ota.csv
framework = arduino
upload_protocol = esptool
monitor_speed = 115200
upload_speed = 921600
lib_deps =
${common_env_data.lib_deps_ext}
build_flags =
-DTARGET_WT32_WROOMD
-DNO_DISPLAY
${common_env_data.build_flags_settings}