-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplatformio.ini
More file actions
112 lines (104 loc) · 3.82 KB
/
platformio.ini
File metadata and controls
112 lines (104 loc) · 3.82 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
[platformio]
default_envs = devel
include_dir = src
[env]
platform = espressif32
; platform = https://github.com/platformio/platform-espressif32.git#master
; platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#master
; Disable dynamic toolchain configuration for upstream Arduino packages
; board_build.arduino.upstream_packages = no
board = lolin32_lite
framework = arduino
lib_extra_dirs = ~/wrk/libs
; lib_ldf_mode = deep+
lib_deps =
https://github.com/gsoros/libatoll.git
https://github.com/gsoros/MPU9250.git
;https://github.com/h2zero/NimBLE-Arduino.git#master
https://github.com/gsoros/NimBLE-Arduino.git
https://github.com/gsoros/HX711_ADC.git
;rlogiacco/CircularBuffer@^1.3.3
https://github.com/gsoros/CircularBuffer.git
https://github.com/gsoros/VescUart.git
;https://github.com/PaulStoffregen/OneWire.git
https://github.com/gsoros/OneWire.git
;https://github.com/milesburton/Arduino-Temperature-Control-Library.git
https://github.com/gsoros/Arduino-Temperature-Control-Library.git
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
default
board_build.partitions = partitions.csv
extra_scripts = custom_tasks.py
upload_port = /dev/ttyUSB1
monitor_port = /dev/ttyUSB1
[common]
build_flags =
'-DVERSION="0.3"'
-DCONFIG_BT_NIMBLE_ATT_PREFERRED_MTU=512
-DCONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT=24 ; increase if sending large data with low MTU, e.g. 512B with 23 MTU will fail. default 12
-DCONFIG_BT_NIMBLE_ROLE_CENTRAL_DISABLED ; client
-DCONFIG_BT_NIMBLE_ROLE_OBSERVER_DISABLED ; scan
;-DCONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED ; server
;-DCONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED ; advertising
-DCONFIG_BT_NIMBLE_MAX_CONNECTIONS=8
-DCONFIG_BT_NIMBLE_MAX_BONDS=5
-DCONFIG_BT_NIMBLE_PINNED_TO_CORE=1
-DCONFIG_BT_NIMBLE_TASK_STACK_SIZE=8192
-DCONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE=8192
-DCONFIG_NIMBLE_STACK_USE_MEM_POOLS=0
-DAPI_SERVICE=1 ; 1=ESPM, 2=ESPCC
-DNO_GLOBAL_SERIAL
-DGLOBAL_SPLITSTREAM_SERIAL
-DFEATURE_BATTERY
-DFEATURE_API
-DFEATURE_WIFI
-DFEATURE_WIFI_SERIAL
-DFEATURE_OTA
-DFEATURE_BLE
-DFEATURE_BLE_SERVER
-DFEATURE_TEMPERATURE
-DFEATURE_TEMPERATURE_COMPENSATION
-DFEATURE_MPU
-DFEATURE_MPU_TEMPERATURE ; either mpu built-in temperature sensor
;-DFEATURE_DS18B20 ; or external temperature sensor
[devel]
build_flags =
${common.build_flags}
'-DBUILDTAG="dev"'
-DCORE_DEBUG_LEVEL=1 ; 0: none, 1: error, 2: warning, 3, info, 4: debug, 5: verbose
-DATOLL_LOG_LEVEL=4 ; 0: none, 1: error, 2: warning, 3, info, 4+: debug
-DCONFIG_BT_NIMBLE_LOG_LEVEL=3 ; 0 = DEBUG, 1 = INFO, 2 = WARNING, 3 = ERROR, 4 = CRITICAL, 5+ = NONE
-DCONFIG_NIMBLE_CPP_LOG_LEVEL=1 ; 0 = NONE, 1 = ERROR, 2 = WARNING, 3 = INFO, 4+ = DEBUG
-DCONFIG_NIMBLE_CPP_ENABLE_RETURN_CODE_TEXT ; return codes as text
-DCONFIG_NIMBLE_CPP_ENABLE_GAP_EVENT_CODE_TEXT ; GAP event codes as text
-DCONFIG_NIMBLE_CPP_ENABLE_ADVERTISEMENT_TYPE_TEXT ; advertisement types as text
;-DENABLE_I2C_DEBUG_BUFFER
-DFEATURE_SERIAL
[prod]
build_flags =
${common.build_flags}
'-DBUILDTAG="prod"'
-DCORE_DEBUG_LEVEL=1 ; 0: none, 1: error, 2: warning, 3, info, 4: debug, 5: verbose
-DATOLL_LOG_LEVEL=1 ; 0: none, 1: error, 2: warning, 3, info, 4+: debug
-DCONFIG_BT_NIMBLE_LOG_LEVEL=4 ; 0 = DEBUG, 1 = INFO, 2 = WARNING, 3 = ERROR, 4 = CRITICAL, 5+ = NONE
-DCONFIG_NIMBLE_CPP_LOG_LEVEL=0 ; 0 = NONE, 1 = ERROR, 2 = WARNING, 3 = INFO, 4+ = DEBUG
-DFEATURE_SERIAL
[env:devel]
lib_deps = ${env.lib_deps}
build_flags = ${devel.build_flags}
build_type = debug
[env:develOTA]
lib_deps = ${env.lib_deps}
build_flags = ${devel.build_flags}
build_type = debug
upload_protocol = espota
upload_port = ESPMdebug.local
[env:prod]
lib_deps = ${env.lib_deps}
build_flags = ${prod.build_flags}
[env:prodOTA]
lib_deps = ${env.lib_deps}
build_flags = ${prod.build_flags}
upload_protocol = espota
upload_port = ESPM.local