forked from juicecultus/EPub-M5Stack-Paper-S3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
235 lines (214 loc) · 4.93 KB
/
platformio.ini
File metadata and controls
235 lines (214 loc) · 4.93 KB
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
229
230
231
232
233
234
; 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 = inkplate_6_release
[common]
lib_deps = https://github.com/turgu1/ESP-IDF-InkPlate.git#v0.9.6
build_flags =
-std=gnu++17
-I include_global
-D PNGLE_GRAYSCALE_OUTPUT=1
-D PNGLE_NO_GAMMA_CORRECTION=1
build_unflags =
-std=gnu++11
[inkplate_common]
platform = espressif32
board = esp-wrover-kit
framework = espidf
monitor_speed = 115200
upload_speed = 256000
monitor_filters = colorize
board_build.partitions = partitions.csv
build_flags =
-O3
${common.build_flags}
-D CONFIG_SPIRAM_CACHE_WORKAROUND
-D EPUB_INKPLATE_BUILD=1
-D EPUB_LINUX_BUILD=0
-D INCLUDE_vTaskSuspend=1
-D SHOW_TIMING=0
-D DATE_TIME_RTC=1
-I lib/externals
-I lib_freetype/include/freetype2
-L lib_freetype/lib
-lfreetype
build_unflags =
${common.build_unflags}
lib_extra_dirs =
lib_esp32
board_build.embed_files =
src/embed/favicon.ico
src/embed/upload_script.html
lib_deps =
${common.lib_deps}
[linux_common]
platform = linux_x86_64
build_flags =
${common.build_flags}
-lpthread
-lrt
-lcrypto
-D EPUB_LINUX_BUILD=1
-D EPUB_INKPLATE_BUILD=0
-I lib/externals
!pkg-config --cflags --libs gtk+-3.0
!pkg-config --cflags --libs freetype2
build_unflags =
${common.build_unflags}
lib_extra_dirs =
lib_linux
lib_freetype
lib_deps =
${common.lib_deps}
[env:inkplate_6_release]
extends = inkplate_common
build_type = release
build_flags =
-D INKPLATE_6
-D EPUB_LOG_LEVEL=ESP_LOG_INFO
${inkplate_common.build_flags}
[env:inkplate_6_debug]
extends = inkplate_common
build_type = release
build_flags =
-D INKPLATE_6
-D EPUB_LOG_LEVEL=ESP_LOG_VERBOSE
${inkplate_common.build_flags}
[env:inkplate_6plus_release]
extends = inkplate_common
build_type = release
build_flags =
-D INKPLATE_6PLUS
-D EPUB_LOG_LEVEL=ESP_LOG_INFO
${inkplate_common.build_flags}
[env:inkplate_6plus_debug]
extends = inkplate_common
build_type = release
build_flags =
-D INKPLATE_6PLUS
-D EPUB_LOG_LEVEL=ESP_LOG_VERBOSE
${inkplate_common.build_flags}
[env:inkplate_10_release]
extends = inkplate_common
build_type = release
build_flags =
-D INKPLATE_10
-D EPUB_LOG_LEVEL=ESP_LOG_INFO
${inkplate_common.build_flags}
[env:inkplate_10_debug]
extends = inkplate_common
build_type = release
build_flags =
-D INKPLATE_10
-D DEBUGGING=1
-D EPUB_LOG_LEVEL=ESP_LOG_VERBOSE
${inkplate_common.build_flags}
[env:inkplate_10_tests]
extends = inkplate_common
lib_compat_mode = off
build_type = release
build_flags =
-D INKPLATE_10
-D DEBUGGING=1
-D TESTING=1
-D EPUB_LOG_LEVEL=ESP_LOG_VERBOSE
${inkplate_common.build_flags}
lib_deps = google/googletest@^1.10.0
[env:inkplate_6_extended_case_release]
extends = inkplate_common
build_type = release
build_flags =
-D INKPLATE_6
-D EXTENDED_CASE
-D EPUB_LOG_LEVEL=ESP_LOG_INFO
${inkplate_common.build_flags}
[env:inkplate_6_extended_case_debug]
extends = inkplate_common
build_type = release
build_flags =
-D INKPLATE_6
-D EXTENDED_CASE
-D EPUB_LOG_LEVEL=ESP_LOG_VERBOSE
${inkplate_common.build_flags}
[env:inkplate_10_extended_case_release]
extends = inkplate_common
build_type = release
build_flags =
-D INKPLATE_10
-D EXTENDED_CASE
-D EPUB_LOG_LEVEL=ESP_LOG_INFO
${inkplate_common.build_flags}
[env:inkplate_10_extended_case_debug]
extends = inkplate_common
build_type = release
build_flags =
-D INKPLATE_10
-D EXTENDED_CASE
-D EPUB_LOG_LEVEL=ESP_LOG_VERBOSE
${inkplate_common.build_flags}
[env:linux_release]
extends = linux_common
build_type = release
build_flags =
-O3
-D DEBUGGING=0
-D TOUCH_TRIAL=1
-D DATE_TIME_RTC=1
-D MENU_6PLUS=1
${linux_common.build_flags}
[env:linux_debug]
extends = linux_common
build_type = debug
build_flags =
-g -O0
-fno-inline
-D DEBUGGING=0
-D TOUCH_TRIAL=1
-D DATE_TIME_RTC=1
-D USE_VALGRIND=on
-D SHOW_TIMING=0
${linux_common.build_flags}
[env:linux_tests]
extends = linux_common
build_type = debug
build_flags =
-g -O0
-fno-inline
-D DEBUGGING=0
-D TOUCH_TRIAL=1
-D DATE_TIME_RTC=1
-D USE_VALGRIND=on
-D SHOW_TIMING=0
${linux_common.build_flags}
[env:paper_s3]
extends = inkplate_common
board = esp32-s3-devkitm-1
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
build_flags =
-DBOARD_TYPE_PAPER_S3
-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES=1
-DCONFIG_EPD_DISPLAY_TYPE_ED047TC2
-DCONFIG_EPD_BOARD_REVISION_LILYGO_T5_47
-DSD_CARD_PIN_NUM_MISO=GPIO_NUM_40
-DSD_CARD_PIN_NUM_MOSI=GPIO_NUM_38
-DSD_CARD_PIN_NUM_CLK=GPIO_NUM_39
-DSD_CARD_PIN_NUM_CS=GPIO_NUM_47
-DTOUCH_TRIAL=1
-D EPUB_LOG_LEVEL=ESP_LOG_INFO
${inkplate_common.build_flags}
; Use only vendored libraries under lib_esp32 (EPub_InkPlate, epdiy, etc.)
lib_deps =
lib_extra_dirs =
lib_esp32
JPEGDEC
PNGdec
lib_ignore =
ESP-IDF-Inkplate