-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
228 lines (219 loc) · 4.56 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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
; 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 =
Wemos_D1_Mini32_RPI_ILI9486
ESP32_Dev_RPI_ILI9486
ESP32_Dev_Multi_RPI_ILI9486
ESP32_Dev_ILI9488
ESP32_SPI_ST7796_40
src_dir = .
include_dir = .
[env]
build_flags =
-Wall
-std=c++17
lib_deps =
; prenticedavid/MCUFRIEND_kbv@^3.1.0-Beta
; adafruit/Adafruit GFX Library@^1.11.9
bodmer/TFT_eSPI
; adafruit/Adafruit TouchScreen@^1.1.5
; greiman/SSD1306Ascii@^1.3.5
build_src_filter =
+<*>
-<.git/>
-<test/>
[env:Wemos_D1_Mini32_RPI_ILI9486]
platform = espressif32
board = wemos_d1_mini32
framework = arduino
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
-DUSER_SETUP_LOADED=1
-DRPI_DISPLAY_TYPE=1
-DILI9486_DRIVER=1
-DTFT_MISO=23
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=4
-DTOUCH_CS=22
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=26000000
-DSPI_TOUCH_FREQUENCY=2500000
monitor_speed = 115200
monitor_echo = yes
test_ignore = *
[env:ESP32_Dev_RPI_ILI9486]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
-DUSER_SETUP_LOADED=1
-DRPI_DISPLAY_TYPE=1
-DILI9486_DRIVER=1
-DTFT_MISO=23
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=25
-DTFT_DC=2
-DTFT_RST=4
-DTOUCH_CS=32
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=26000000
-DSPI_TOUCH_FREQUENCY=2500000
monitor_speed = 115200
monitor_echo = yes
test_ignore = *
[env:ESP32_Dev_Multi_RPI_ILI9486]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
-DUSER_SETUP_LOADED=1
-DRPI_DISPLAY_TYPE=1
-DILI9486_DRIVER=1
-DTFT_MISO=23
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=-1
-DTFT_DC=2
-DTFT_RST=4
-DTOUCH_CS=32
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=26000000
-DSPI_TOUCH_FREQUENCY=2500000
monitor_speed = 115200
monitor_echo = yes
test_ignore = *
[env:ESP32_Dev_ILI9488]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps = bodmer/TFT_eSPI;
${env.lib_deps}
build_flags =
${env.build_flags}
-DUSER_SETUP_LOADED=1
;-DRPI_DISPLAY_TYPE=1
-DILI9488_DRIVER=1
-DTFT_MISO=19
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=4
-DTOUCH_CS=32
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=27000000
-DSPI_TOUCH_FREQUENCY=2500000
monitor_speed = 115200
monitor_echo = yes
test_ignore = *
[env:ESP32_SPI_ST7796_40]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
-DUSER_SETUP_LOADED=36
#-DRPI_DISPLAY_TYPE=1
-DST7796_DRIVER=1
-DTFT_MISO=19
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=4
-DTOUCH_CS=22
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=26000000
-DSPI_TOUCH_FREQUENCY=2500000
monitor_speed = 115200
monitor_echo = yes
test_ignore = *
[env:native_test]
platform = native
lib_deps =
googletest
test_framework = googletest
build_flags =
${env.build_flags}
-I./test/mocks
-fsanitize=address # Address sanitizer
-fsanitize=undefined # Undefined Behavior Sanitizer
-g # Add debugging symbols
-O0 # Disable optimizations for better analysis
-lgcov # Enable gcov reports
--coverage # Enable test coverage tracking (gcno + gcna file generation)
-fprofile-abs-path # Use absolute paths in coverage data
test_filter = *
test_build_src = yes
[env:native_test_windows]
platform = native
lib_deps =
googletest
test_framework = googletest
build_flags =
${env.build_flags}
-I./test/mocks
-g # Add debugging symbols
-O0 # Disable optimizations for better analysis
-lgcov # Enable gcov reports
--coverage # Enable test coverage tracking (gcno + gcna file generation)
-fprofile-abs-path # Use absolute paths in coverage data
test_filter = *
test_build_src = yes