-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathplatformio.ini
124 lines (116 loc) · 3.5 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
; 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]
description = GPS module for mobile apps used to log lap times at a track circuit
extra_configs =
platformio_custom.ini
; see platformio_custom.ini.template for an example to have your own definitions outside of version control
[env]
platform = espressif32
framework = arduino
lib_deps =
h2zero/NimBLE-Arduino @ ^1.2.0
yiannisbourkelis/Uptime Library @ ^1.0.0
evert-arias/EasyButton @ ^2.0.1
arkhipenko/TaskScheduler @ ^3.2.2
board_build.partitions = min_spiffs.csv
monitor_speed = 115200
monitor_filters = colorize, esp32_exception_decoder
build_flags = !python git_rev_macro.py
lib_ldf_mode = chain+
[env:esp32dev]
; basic configuration for a production build without logging
; OTA is disabled
board = esp32dev
monitor_port = /dev/cu.usbserial-0001
upload_port = /dev/cu.usbserial-0001
board_build.f_flash = 80000000L
build_flags =
${env.build_flags}
-DLOG_LOCAL_LEVEL=ESP_LOG_NONE
-DCORE_DEBUG_LEVEL=0
-DBUILD_ENV_NAME='"Prod build"'
-DNO_GLOBAL_ARDUINOOTA
[env:esp32dev_ota]
; basic configuration for a production build without logging
; Update is OTA, OTA is enabled without timeout
board = esp32dev
upload_protocol = espota
upload_port = bonogps.local
board_build.f_flash = 80000000L
build_flags =
${env.build_flags}
-DLOG_LOCAL_LEVEL=ESP_LOG_NONE
-DCORE_DEBUG_LEVEL=0
-DENABLE_OTA
-DOTA_AVAILABILITY_SECS=-1
-DBUILD_ENV_NAME='"Prod build - OTA"'
[env:esp32dev_debug]
; basic configuration for a troublshooting/debug build without verbose logging
; OTA is enabled without timeout
board = esp32dev
monitor_port = /dev/cu.usbserial-0001
upload_port = /dev/cu.usbserial-0001
board_build.f_flash = 80000000L
build_type = debug
build_flags =
${env.build_flags}
-DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG
-DCORE_DEBUG_LEVEL=4
-DENABLE_OTA
-DOTA_AVAILABILITY_SECS=-1
-DBUILD_ENV_NAME='"Test build - OTA"'
[env:lolind32pro]
; lolind32 pro target with no logging
; not good for troubleshooting on serial as nothing is printed
; OTA is not enabled for standard value of 300 secs upon restart
board = lolin_d32_pro
board_build.f_flash = 80000000L
; board_build.flash_mode = qio
build_flags =
${env.build_flags}
-DLOG_LOCAL_LEVEL=ESP_LOG_NONE
-DCORE_DEBUG_LEVEL=0
-DNO_GLOBAL_ARDUINOOTA
-DBUILD_ENV_NAME='"Prod build"'
; -DBOARD_HAS_PSRAM
; -mfix-esp32-psram-cache-issue
[env:lolind32pro_ota]
; lolind32 pro target with no logging
; not good for troubleshooting on serial as nothing is printed
; OTA is enabled forever
board = lolin_d32_pro
upload_protocol = espota
upload_port = bonogps.local
board_build.f_flash = 80000000L
build_flags =
${env.build_flags}
-DLOG_LOCAL_LEVEL=ESP_LOG_NONE
-DCORE_DEBUG_LEVEL=0
-DENABLE_OTA
-DOTA_AVAILABILITY_SECS=-1
-DBUILD_ENV_NAME='"Prod build - OTA"'
[env:lolind32pro_debug]
; lolind32 pro target with extended logging
; not good for real applications as log bogs down performances
; OTA is enabled forever
board = lolin_d32_pro
build_type = debug
board_build.f_flash = 80000000L
; board_build.flash_mode = qio
build_flags =
${env.build_flags}
-DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG
-DCORE_DEBUG_LEVEL=4
-DENABLE_OTA
-DOTA_AVAILABILITY_SECS=-1
-DBUILD_ENV_NAME='"Test build - OTA"'
; -DBOARD_HAS_PSRAM
; -mfix-esp32-psram-cache-issue