-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
132 lines (124 loc) · 3.58 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
; 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]
name = ePaperThingy
default_envs = lolin_s2_mini, dev
[monitor_settings]
speed = 115200
filters = esp32_exception_decoder, log2file
[env]
framework = arduino
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.10/platform-espressif32.zip
monitor_speed=${monitor_settings.speed}
monitor_filters=${monitor_settings.filters}
build_flags =
-D MONITOR_SPEED=${monitor_settings.speed}
; Configure app
-D APP_NAME=\"ePaperThingy\"
-D ESPCONNECT_TIMEOUT_CAPTIVE_PORTAL=180
-D ESPCONNECT_TIMEOUT_CONNECT=20
-D CAPTIVE_PORTAL_SSID=\"ePaperPortal\"
-D CAPTIVE_PORTAL_PASSWORD=\"\"
-D HTTP_PORT=80
-D HTTPCLIENT_NOSECURE
; -D MYCILA_LOGGER_SUPPORT
; Config for Displpay
-D DISPLAY_PIN_CS=2
-D DISPLAY_PIN_DC=4
-D DISPLAY_PIN_RST=3
-D DISPLAY_PIN_BUSY=5
; See pins_arduino.h for dafault SPI-Pins...
-D DISPLAY_PIN_SPI_SCK=7
-D DISPLAY_PIN_SPI_MISO=-1
-D DISPLAY_PIN_SPI_MOSI=11
-D DISPLAY_PIN_SPI_SS=-1
-D CONFIG_ASYNC_DISPLAY_STACK_SIZE=4096
; AsyncTCP
-D CONFIG_ASYNC_TCP_RUNNING_CORE=1
-D CONFIG_ASYNC_TCP_STACK_SIZE=4096
; ESPAsyncWebServer
-D WS_MAX_QUEUED_MESSAGES=64
; TaskScheduler
-D _TASK_THREAD_SAFE
-D _TASK_STD_FUNCTION
-D _TASK_STATUS_REQUEST
-D _TASK_SELF_DESTRUCT
; C++
-std=c++17
-std=gnu++17
; https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
-O3
build_unflags =
-std=gnu++11
lib_deps =
bblanchon/ArduinoJson @ 7.2.1
mathieucarbou/AsyncTCP @ 3.3.1
mathieucarbou/ESPAsyncWebServer @ 3.4.5
mathieucarbou/MycilaESPConnect @ 7.0.0
vshymanskyy/Preferences @ 2.1.0
arkhipenko/TaskScheduler @ 3.8.5
zinggjm/GxEPD2 @ 1.6.1
lib_compat_mode = strict
lib_ldf_mode = chain
board_build.filesystem = littlefs
board_build.partitions = partitions_safeboot640k_app3264k_fs128k.csv
board_build.app_partition_name = app
custom_safeboot_dir = safeboot
upload_protocol = esptool
board = esp32dev
extra_scripts =
pre:tools/assets.py
pre:tools/svg2rbmono.py
pre:tools/customize_thingy_html.py
pre:tools/version.py
post:tools/factory.py
post:tools/rename_fw.py
board_build.embed_files =
.pio/assets/logo_captive.svg.gz
.pio/assets/logo_thingy.svg.gz
.pio/assets/favicon.svg.gz
.pio/assets/apple-touch-icon.png.gz
.pio/assets/favicon-96x96.png.gz
.pio/assets/favicon-32x32.png.gz
.pio/assets/thingy.html.gz
[env:dev]
build_flags = ${env.build_flags}
; Debug
-D CONFIG_ARDUHAL_LOG_COLORS
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
-D ESPCONNECT_DEBUG
-D EPAPER_DEBUG
-D DEBUG_ESP_CORE
[env:lolin_s2_mini]
board = lolin_s2_mini
build_flags = ${env.build_flags}
; Debug
-D CONFIG_ARDUHAL_LOG_COLORS
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
-D ESPCONNECT_DEBUG
-D EPAPER_DEBUG
-D DEBUG_ASYNC_TASK
; -D DEBUG_ESP_CORE
; After initial flashing of the [..].factory.bin, espota can be used for uploading the app
[env:lolin_s2_mini-ota]
board = lolin_s2_mini
upload_protocol = espota
; enter mdns-name of the target here
upload_port = epaperthingy.local
extra_scripts = ${env.extra_scripts}
tools/safeboot_activate.py
build_flags = ${env.build_flags}
; Debug
-D CONFIG_ARDUHAL_LOG_COLORS
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
-D ESPCONNECT_DEBUG
-D EPAPER_DEBUG
-D DEBUG_ASYNC_TASK
; -D DEBUG_ESP_CORE